http://kera.name/articles/2011/06/iterator-invalidation-rules/
其中,
关联性容器(如map)的插入,不会导致旧迭代器失效。
顺序容器(如deque,vector)的插入,可能导致旧迭代器失效。
http://kera.name/articles/2011/06/iterator-invalidation-rules/
其中,
关联性容器(如map)的插入,不会导致旧迭代器失效。
顺序容器(如deque,vector)的插入,可能导致旧迭代器失效。
本文标题:迭代器失效
本文链接:https://www.haomeiwen.com/subject/tcyiottx.html
网友评论