std::experimental::erase_if(std::forward_list) (3) - Linux Manuals

std::experimental::erase_if(std::forward_list): std::experimental::erase_if(std::forward_list)

NAME

std::experimental::erase_if(std::forward_list) - std::experimental::erase_if(std::forward_list)

Synopsis


Defined in header <experimental/forward_list>
template< class T, class Alloc, class Pred > (library fundamentals TS v2)
void erase_if(std::forward_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::forward_list<T,Allocator>)
remove_if


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