I have 2 vectors & I'm trying to make a third that only contains the similar elements between them.
Example of what I'm going for: (Not formatted properly, just quickly showing)
Vector 1 = "butts stuff things"
Vector 2 = "and butts too"
Vector 3 = "butts" (The 2 vectors contain 1 similar element)
I've been looking at some of the examples online for an algorithm called std::set intersection but I'm kinda lost on how to use it in this specific case.