Return the number of elements with the specified key.
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...
1 if key is present, and 0 otherwise
| Name | Description |
|---|---|
| key | key to count |