[#BloombergLP-bdlc-FlatHashMap-contains-04b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap]::contains
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bdlc&lowbar;flathashmap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
contains(KEY const& key) const;
----

== Description

Return `true` if this map contains an element having the specified `key`, and `false` otherwise&period;

== Return Value

`true` if an element with `key` exists, and `false` otherwise

== Parameters

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


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