[#bsl-set-0d-contains-0b] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::contains :relfileprefix: ../../ :mrdocs: Return `true` if this map contains an element whose key is equivalent to the specified `key`. == Synopses Declared in `<bslstl_set.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/set-0d/contains-05.adoc[contains](xref:bsl/set-0d/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:bsl/set-0d/contains-05.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/set-0d/contains-00.adoc[contains](LOOKUP_KEY const& key) const requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR, LOOKUP_KEY>::value; ---- [.small]#xref:bsl/set-0d/contains-00.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#