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