[#BloombergLP-bdlc-FlatHashSet-contains-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::contains
:relfileprefix: ../../../
:mrdocs:

`contains` overloads

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bdlc/FlatHashSet/contains-0a.adoc[contains](KEY const& key) const;
----

[.small]#xref:BloombergLP/bdlc/FlatHashSet/contains-0a.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
bool
xref:BloombergLP/bdlc/FlatHashSet/contains-08.adoc[contains](LOOKUP&lowbar;KEY const& key) const
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;HASH, LOOKUP&lowbar;KEY&gt;&colon;&colon;value
        &amp;&amp;  BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;EQUAL,LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/bdlc/FlatHashSet/contains-08.adoc[_» more&period;&period;&period;_]#


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