[#bsl-hash_map-count]
= xref:bsl.adoc[bsl]::xref:bsl/hash_map.adoc[hash&lowbar;map]::count
:relfileprefix: ../../
:mrdocs:

Return the number of elements matching the specified key&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;hashmap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_map/size_type.adoc[size&lowbar;type]
count(xref:bsl/hash_map/key_type.adoc[key&lowbar;type] const& &lowbar;&lowbar;key) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
