Return the number of elements with a key equivalent to key.

Synopsis

Declared in <bslstl_unorderedmultimap.h>

template<class LOOKUP_KEY>
size_type
count(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
        && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;

Description

Return the number of value_type objects in this unordered multimap with a key equivalent to the specified key. The behavior is undefined unless key is equivalent to the key of the elements of at most one equivalent‐key group in this unordered multimap.

Return Value

number of elements with an equivalent key

Parameters

Name

Description

key

transparent key value to count

Created with MrDocs