BloombergLP::bdlc::FlatHashMap::count

Return the number of elements with the specified key.

Synopses

Declared in <bdlc_flathashmap.h>

Return the number of elements with the specified key.

std::size_t
count(KEY const& key) const;
» more...

Return the number of elements with the specified key.

template<class LOOKUP_KEY>
std::size_t
count(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value
         && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value;
» more...

Return Value

1 if key is present, and 0 otherwise

Parameters

NameDescription
keykey to count