我的问题是插入和删除其他元素是否使获得的迭代器无效?从我做过的简单测试我可以看到它不是,但我想确保这个功能是设计的.
23.1.2 / 8:
The insert members shall not affect the validity of iterators and references to the container,and the erase members shall invalidate only iterators and references to the erased elements.