a set/unordered_set will be more efficient here, as we will have some inserts/deletes on this container. Sets also make the erase (by value) a bit shorter ;-) ->l130 in the cpp, we don't have to check for double inserts with them.