Possible Duplicate:
Iterator invalidation rules
Imagine that I have a map<int, int>
. Somehow I retrieved an iterator pointing to an entry pair<35,37>
in the map. I save this iterator as map<int, int>::iterator _my_iterator3537
.
After that, I did a lot of insertion to the map. Is _my_iterator3537
still pointing to the pair<35,37>
?