Which standard C++ collections include built in remove
/remove_if
operations?
For example, I see that list
has them:
http://www.cplusplus.com/reference/list/list/remove/ http://www.cplusplus.com/reference/list/list/remove_if/
list<int> mylist (...);
mylist.remove(42);
but vector
does not, and I have to do v.erase(remove(etc.etc.etc.))