[#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 `<bdlc_flathashset.h>` Return whether this set contains an element with the specified key. [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..._]# Return whether this set contains an element equivalent to `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> bool xref:BloombergLP/bdlc/FlatHashSet/contains-08.adoc[contains](LOOKUP_KEY const& key) const requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value; ---- [.small]#xref:BloombergLP/bdlc/FlatHashSet/contains-08.adoc[_» more..._]# == 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]#