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