Created
September 6, 2012 04:04
-
-
Save lilee/3651054 to your computer and use it in GitHub Desktop.
STL容器注意迭代器失效问题
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 多线程访问STL的容器 | |
| 线程1向一个vector中插入一个元素,会导致线程2中已经获得到的迭代器失效,迭代器指向的值不可预期 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment