[#bsl-multiset-03-count-04]
= xref:bsl.adoc[bsl]::xref:bsl/multiset-03.adoc[multiset]::count
:relfileprefix: ../../
:mrdocs:

Return the number of elements equivalent to `key`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;multiset&period;h&gt;`

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

== Description

Return the number of `value&lowbar;type` objects within this multiset that are equivalent to the specified `key`&period;

Note&colon; implemented inline due to Sun CC compilation error&period;

== Return Value

number of elements equivalent to `key`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key value to count
|===


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