[#bsl-map-0a7-contains-01]
= xref:bsl.adoc[bsl]::xref:bsl/map-0a7.adoc[map]::contains
:relfileprefix: ../../
:mrdocs:

Return `true` if this map contains an element whose key is equivalent to the specified `key`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;map&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
contains(xref:bsl/map-0a7/key_type.adoc[key&lowbar;type] const& key) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
