Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template erase_if

boost::container::erase_if

Synopsis

// In header: <boost/container/map.hpp>


template<typename K, typename M, typename C, typename A, typename O, 
         typename Pred> 
  map< K, M, C, A, O >::size_type 
  erase_if(map< K, M, C, A, O > & c, Pred pred);

Description

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

Complexity: Linear.


PrevUpHomeNext