[#bsl-hashtable-count]
= xref:bsl.adoc[bsl]::xref:bsl/hashtable.adoc[hashtable]::count
:relfileprefix: ../../
:mrdocs:

Return the number of matching elements&period;

== Synopsis

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

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

== Description

Return the number of elements with the specified `&lowbar;&lowbar;key`&period;

== Return Value

the number of matching elements

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;key*
| the key to count
|===


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