[#BloombergLP-bdlc-FlatHashMap-count-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap]::count :relfileprefix: ../../../ :mrdocs: `count` overloads == Synopses Declared in `<bdlc_flathashmap.h>` Return the number of elements in this map having the specified `key`. Note that since a flat hash map maintains unique keys, the returned value will be either 0 or 1. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t xref:BloombergLP/bdlc/FlatHashMap/count-01.adoc[count](KEY const& key) const; ---- [.small]#xref:BloombergLP/bdlc/FlatHashMap/count-01.adoc[_» more..._]# Return the number of elements in this map having a key equivalent to the specified `key`. Note that since a flat hash map maintains unique keys, the returned value will be either 0 or 1. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> std::size_t xref:BloombergLP/bdlc/FlatHashMap/count-04.adoc[count](LOOKUP_KEY const& key) const requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value; ---- [.small]#xref:BloombergLP/bdlc/FlatHashMap/count-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#