Erase all the elements in the specified container container that satisfy the specified predicate predicate. Return the number of elements erased.
Declared in <bslstl_algorithm.h>
template<
class CONTAINER,
class PREDICATE>
static
CONTAINER::size_type
containerEraseIf(
CONTAINER& container,
PREDICATE predicate);
the number of elements erased
| Name | Description |
|---|---|
| container | container from which matching elements are erased |
| predicate | unary predicate selecting elements to erase |