使用std::set iterator 用for迭代erase对象的时候,当前iterator会失效! std::set int_set; std::set::iterator int_it; int_it = int_set.erase(ini_it) ini_it默认+1