[#bsl-unordered_multiset-06c-contains-0f]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset]::contains
:relfileprefix: ../../
:mrdocs:

Return whether this unordered multiset contains `key`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
contains(xref:bsl/unordered_multiset-06c/key_type.adoc[key&lowbar;type] const& key) const;
----

== Description

Return `true` if this unordered multiset contains an element whose key is equivalent to the specified `key`&period;

== Return Value

`true` if present, otherwise `false`

== Parameters

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


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