[#bsl-unordered_set-02a-contains-0b] = xref:bsl.adoc[bsl]::xref:bsl/unordered_set-02a.adoc[unordered_set<ManagedAttribute, AttributeHash>]::contains :relfileprefix: ../../ :mrdocs: Return `true` if this unordered set contains an element whose key is equivalent to the specified `key`. == Synopses Declared in `<bslstl_unorderedset.h>` Return `true` if this unordered set contains an element whose key is equivalent to the specified `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/unordered_set-02a/contains-0a.adoc[contains](xref:bsl/unordered_set-02a/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:bsl/unordered_set-02a/contains-0a.adoc[_» more..._]# Return `true` if this unordered set 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/unordered_set-02a/contains-09.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_set-02a/contains-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#