Erase all elements in ms that satisfy predicate.

Synopsis

Declared in <bslstl_unorderedmultiset.h>

template<
    class KEY,
    class HASH,
    class EQUAL,
    class ALLOCATOR,
    class PREDICATE>
bsl::unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>::size_type
erase_if(
    unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>& ms,
    PREDICATE predicate);

Description

Erase all the elements in the specified unordered_multiset ms that satisfy the specified predicate predicate. Return the number of elements erased.

Return Value

number of elements erased

Parameters

Name

Description

ms

unordered multiset from which to erase

predicate

unary predicate selecting elements to erase

Created with MrDocs