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