count overloads
Synopses
Declared in <bdlc_flathashset.h>
Return the number of elements with the specified key.
std::size_t
count(KEY const& key) const;
Return the number of elements equivalent to 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;
Return Value
1 if key is present, and 0 otherwise
Parameters
Name |
Description |
key |
key to count |
Created with MrDocs