[#bsl-unordered_map-02b-contains-00] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered_map]::contains :relfileprefix: ../../ :mrdocs: Return `true` if this unordered map contains an element whose key is equivalent to the specified `key`. == Synopsis Declared in `<bslstl_unorderedmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool contains(xref:bsl/unordered_map-02b/key_type.adoc[key_type] const& key) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#