boost may have one. search that link for the word intersect and see how it is used.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>Is there a function that I can use that given a few vectors which elements are common to all?
Look up set_intersection.
>What if I have more than 2 vectors to compare
Look up set_intersection with a focus on the return value and consider making multiple calls.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401