c++ - Can iterators become invalid after operations?
Imagine that I have a map. Somehow I retrieved an iterator pointing to an entry pair<35,37> in the map. I save this iterator as map::iterator _my_iterator3537.
After that, I did a lot of insertion to the map. Is _my_iterator3537 still pointing to the pair<35,37>?
No comments:
Post a Comment