[#BloombergLP-bdlc-FlatHashSet-count-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::count :relfileprefix: ../../../ :mrdocs: `count` overloads == Synopses Declared in `<bdlc_flathashset.h>` Return the number of elements with the specified `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t xref:BloombergLP/bdlc/FlatHashSet/count-06.adoc[count](KEY const& key) const; ---- [.small]#xref:BloombergLP/bdlc/FlatHashSet/count-06.adoc[_» more..._]# Return the number of elements equivalent to the specified `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> std::size_t xref:BloombergLP/bdlc/FlatHashSet/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/FlatHashSet/count-04.adoc[_» more..._]# == Return Value 1 if `key` is present, and 0 otherwise == Parameters [cols="1,4"] |=== | Name| Description | *key* | key to count |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#