vector.erase(iterator iter) will change "iter" or not?
suppose I will delete an element pointed to by "iter".
like this:
vector<int> s;
for(vector<int>::iterator iter=s.begin(); iter!=s.end(); iter++){
if(*iter==3)
s.erase(iter); //A
}
in line A, if element by "iter" is erased, will "iter" point to the
next element(now should be the current element) automatically?
|