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