I have a std::vector of objects.
I also have a list of objects that need to be removed from this vector. (probably contains iterators)
My problem is that if I delete 1 object, there is no guarantee that the iterators or index numbers will stay the same for the other objects.
Is there something I can do to fix this or would it be better to switch to a std::list?
Use a list. The other iterators will be valid after deleting an object.
This is just not possible with a vector