Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Function template erase_if
PrevUpHomeNext

Function template erase_if

boost::container::erase_if

Synopsis

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


template<typename T, typename Tr, typename A, typename Pred> 
  basic_string< T, Tr, A >::size_type 
  erase_if(basic_string< T, Tr, A > & c, Pred pred);

Description

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

Complexity: Linear.


PrevUpHomeNext