Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template erase_if

boost::container::erase_if

Synopsis

// 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);

Description

Effects: Erases all elements that satisfy the predicate pred from the container c.

Complexity: Linear.


PrevUpHomeNext