Erase all the elements in the specified list l that satisfy the specified predicate predicate. Return the number of elements erased.
Declared in <bslstl_list.h>
template<
class VALUE,
class ALLOCATOR,
class PREDICATE>
bsl::list<VALUE, ALLOCATOR>::size_type
erase_if(
list<VALUE, ALLOCATOR>& l,
PREDICATE predicate);