Original Post
Almost... I''d like to check to see if all the items within vector1 exist within vector2. If not I''d like vector3 to contain the missing elements.
I was about to code a bunch of loops within loops. This is not ideal as it''s in my main loop. I expect vector1 to be large (1000''s), vector2 to be small(up to a few hundred) and the difference between the sets each frame will be in the order of a dozen at most.
Can anyone think of a good way to do this without having to check vector1 for every item within vector2? I was sort of looking at set_difference but the word ''ordered sets'' scared me off. I doubt there is any order to my data and vector 2 is generated so I cannot keep it ordered...
Any idea''s?