boost::container::erase_if
// In header: <boost/container/vector.hpp> template<typename T, typename A, typename O, typename Pred> vector< T, A, O >::size_type erase_if(vector< T, A, O > & c, Pred pred);
Effects: Erases all elements that satisfy the predicate pred from the container c.
Complexity: Linear.