I\'ve got a container and would like to erase elements based on a predicate. erase_if sounds familiar, but I can\'t find it in C++. What\'s the name and where i
erase_if
You're probably looking for std::remove_if, in a pattern such as:
vec.erase(std::remove_if(vec.begin(), vec.end(), predicate), vec.end());