转:http://www.cnblogs.com/biyeymyhjob/archive/2012/07/22/2603525.html 容器迭代器失效问题:http://blog.csdn.net/heyutao007/article/details/6937236