Hiho everibody. Is there a way to create a pointer to an element of a std::vector but keep the pointer pointing on the same element after deleting one at a lower position?
E.g.: the vector contains 0,1,2,3,4,5 and my pointer points to position 3, so to number 3. Now I want to erase lets say the element at position 1. What I want is that the pointer points automatically at position 2, so still to number 3, without updating it by myself.
Is this possible? Help would be much apreciated. Best regards Ritti