[#bsl-unordered_multiset-06c-contains-01] = xref:bsl.adoc[bsl]::xref:bsl/unordered_multiset-06c.adoc[unordered_multiset]::contains :relfileprefix: ../../ :mrdocs: Return whether this unordered multiset contains `key`. == Synopses Declared in `<bslstl_unorderedmultiset.h>` Return whether this unordered multiset contains `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/unordered_multiset-06c/contains-0f.adoc[contains](xref:bsl/unordered_multiset-06c/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:bsl/unordered_multiset-06c/contains-0f.adoc[_» more..._]# Return whether this unordered multiset contains `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> bool xref:bsl/unordered_multiset-06c/contains-0c.adoc[contains](LOOKUP_KEY const& key) const requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<EQUAL, LOOKUP_KEY>::value; ---- [.small]#xref:bsl/unordered_multiset-06c/contains-0c.adoc[_» more..._]# == 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]#