> For each value in vector a, loop through vector b and if you find a match add it to vector c.
I could do that but I've wondered if there's a function (or two) that would simplify the process. I looked at set_intersection but I've yet to get that to work.
One thing, I realize (at least I'm thinking I do) that set_intersection in examples I've seen is taking elements of arrays (not vectors) and I think storing the result into a vector, but I'm looking to create a result from two vectors, not arrays, so I'm not too certain I'm on the right track with set_intersection.