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
PrevUpHomeNext

Function template erase

boost::container::erase

Synopsis

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


template<typename T, typename Allocator, typename U = T> 
  hub< T, Allocator >::size_type 
  erase(hub< T, Allocator > & x, const U & value);

Description

Effects: Erases all elements of x equal to value. Equivalent to erase_if(x, [&](const auto& e){ return e == value; }).

Returns: The number of erased elements.

Complexity: Linear in x.size().


PrevUpHomeNext