bsl::list::remove_if

Erase all elements for which predicate is true; return the count.

Synopsis

Declared in <bslstl_list.h>

template<class PREDICATE>
list<VALUE, ALLOCATOR>::size_type
remove_if(PREDICATE predicate);

Return Value

number of elements erased

Parameters

NameDescription
predicateunary predicate selecting elements to erase