Erase all elements with key equivalent to key and return the count.

Synopsis

Declared in <bslstl_unorderedmultimap.h>

template<class t_KEY>
size_type
erase(t_KEY&& key)
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, t_KEY>::value &&
        BloombergLP::bslmf::IsTransparentPredicate<EQUAL,t_KEY>::value &&
        !is_convertible<BSLS_COMPILERFEATURES_FORWARD_REF(t_KEY),
                        iterator>::value &&
        !is_convertible<BSLS_COMPILERFEATURES_FORWARD_REF(t_KEY),
                        const_iterator>::value;

Description

Same as the preceding erase overload for transparent key types.

Return Value

number of elements erased

Parameters

Name

Description

key

transparent key value of elements to erase

Created with MrDocs