c++ stl iterator erase

简介

就是C++ 标准库程序删除元素。

其实很简单,只是做个记录

it = monkeys.erase(it); //删除元素后,迭代器失效,
//要重新让迭代器指向被删元素的后面

Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
原文地址:https://www.cnblogs.com/eat-too-much/p/13954095.html