📅  最后修改于: 2022-03-11 14:44:53.449000             🧑  作者: Mango
代码示例2
std::vector v;
// fill it up somehow
v.erase(std::remove(v.begin(), v.end(), 99), v.end());
// really remove all elements with value 99