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

Name

Description

predicate

unary predicate selecting elements to erase

Created with MrDocs