vector remove class

Solutions on MaxInterview for vector remove class by the best coders in the world

showing results for - "vector remove class"
Martín
13 Sep 2020
1carVec.erase(std::remove_if(carVec.begin(), carVec.end(), [&id_to_delete](const Car& ele)->bool
2            {
3                return ele.getnewId() == id_to_delete;
4            }), carVec.end());
5