Erase all elements for which predicate is true; return the count.
Declared in <bslstl_list.h>
template<class PREDICATE>
list<VALUE, ALLOCATOR>::size_type
remove_if(PREDICATE predicate);
number of elements erased
| Name | Description |
|---|---|
| predicate | unary predicate selecting elements to erase |