[#bsl-multiset-03-contains-0b] = xref:bsl.adoc[bsl]::xref:bsl/multiset-03.adoc[multiset]::contains :relfileprefix: ../../ :mrdocs: Return whether this multiset contains an element equivalent to `key`. == Synopses Declared in `<bslstl_multiset.h>` Return whether this multiset contains an element equivalent to `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/multiset-03/contains-0f.adoc[contains](xref:bsl/multiset-03/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:bsl/multiset-03/contains-0f.adoc[_» more..._]# Return whether this multiset contains an element equivalent to `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> bool xref:bsl/multiset-03/contains-02.adoc[contains](LOOKUP_KEY const& key) const requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR, LOOKUP_KEY>::value; ---- [.small]#xref:bsl/multiset-03/contains-02.adoc[_» more..._]# == Return Value `true` if an equivalent key is present, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *key* | key value to look up |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#