Answers for "vector remove class"

C++
0

vector remove class

carVec.erase(std::remove_if(carVec.begin(), carVec.end(), [&id_to_delete](const Car& ele)->bool
            {
                return ele.getnewId() == id_to_delete;
            }), carVec.end());
Posted by: Guest on October-06-2020

Code answers related to "vector remove class"

Browse Popular Code Answers by Language