[#bsl-multiset-03-contains-0b] = xref:bsl.adoc[bsl]::xref:bsl/multiset-03.adoc[multiset]::contains :relfileprefix: ../../ :mrdocs: Return `true` if this map contains an element whose key is equivalent to the specified `key`. == Synopses Declared in `<bslstl_multiset.h>` Return `true` if this map contains an element whose key is equivalent to the specified `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 `true` if this map contains an element whose key is equivalent to the specified `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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#