count overloads

Synopses

Declared in <bslstl_unorderedmap.h>

Return the number of elements with the specified key.

size_type
count(key_type const& key) const;

Return the number of elements with an equivalent key.

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;

Return Value

0 or 1

Parameters

Name

Description

key

key to look up

Created with MrDocs