boost::container::erase
// In header: <boost/container/list.hpp> template<typename T, typename A, typename U> list< T, A >::size_type erase(list< T, A > & c, const U & v);
Effects: Erases all elements that compare equal to v from the container c.
Complexity: Linear.