Erase all elements in s that satisfy predicate.

Synopsis

Declared in <bslstl_set.h>

template<
    class KEY,
    class COMPARATOR,
    class ALLOCATOR,
    class PREDICATE>
bsl::set<KEY, COMPARATOR, ALLOCATOR>::size_type
erase_if(
    set<KEY, COMPARATOR, ALLOCATOR>& s,
    PREDICATE predicate);

Description

Return the number of elements erased.

Return Value

number of elements erased

Parameters

Name

Description

s

set from which to erase elements

predicate

unary predicate selecting elements to erase

Created with MrDocs