[#bsl-unordered_map-02b-contains-0a] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered_map]::contains :relfileprefix: ../../ :mrdocs: `contains` overloads == Synopses Declared in `<bslstl_unorderedmap.h>` Return whether this unordered map contains the specified `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/unordered_map-02b/contains-00.adoc[contains](xref:bsl/unordered_map-02b/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:bsl/unordered_map-02b/contains-00.adoc[_» more..._]# Return whether this unordered map contains an equivalent `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> bool xref:bsl/unordered_map-02b/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_map-02b/contains-0c.adoc[_» more..._]# == Return Value `true` if present, otherwise `false` == Parameters [cols="1,4"] |=== | Name| Description | *key* | key to look up |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#