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

Return whether this map contains an element equivalent to `key`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
bool
contains(LOOKUP&lowbar;KEY const& key) const
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;COMPARATOR,
                                                   LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

== Description

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

== Return Value

`true` if an equivalent key is present

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key value to look up
|===


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