Original Post
Lets say I have a stl container (lets say a vector) with an interator pointing to a certain member: inter = container.begin()+5; Now if I erase that member: container.erase(container.begin()+5) then the interator will now be pointing to what before was the 6th member and not NULL. So how do I check if that specific 5th member has been erased or not? For example if I have a different function that needs to know if what had been the 5th member is still there? Please ask if that wasn't clear, it was sort of hard to explain that. Thanks.