map遍历删除
map<int, vector<int>>::iterator it = g_map.begin();
for (; it != g_map.end(); /*it++*/)
{
g_map.erase(it++);
}
vector遍历删除
vector<int>::iterator iter = vec.begin();
while (iter != vec.end())
{
if(*iter == )
{
iter = vec.earse(iter);
}
else
{
++iter;
}
}