[#bsl-unordered_map-02b-contains-00] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered_map]::contains :relfileprefix: ../../ :mrdocs: Return whether this unordered map contains 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; ---- == Description Return `true` if this unordered map contains an element whose key is equivalent to the specified `key`. == 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]#