std::experimental::erase_if(std::list) (3) - Linux Man Pages

std::experimental::erase_if(std::list): std::experimental::erase_if(std::list)

NAME

std::experimental::erase_if(std::list) - std::experimental::erase_if(std::list)

Synopsis


Defined in header <experimental/list>
template< class T, class Alloc, class Pred > (library fundamentals TS v2)
void erase_if(std::list<T,Alloc>& c, Pred pred);


Erases all elements that satisfy the predicate pred from the container. Equivalent to c.remove_if(pred);

Parameters


c - container from which to erase
pred - predicate that determines which elements should be erased

Complexity


Linear.

Example


 This section is incomplete
 Reason: no example

See also


                            removes elements satisfying specific criteria
remove (function template)
remove_if
                            removes elements satisfying specific criteria
remove (public member function of std::list<T,Allocator>)
remove_if


erase_(std::list) Erases all elements equal to a specific value from a std::list
                            (function template)
(library fundamentals 2 TS)