[#bsl-set-0d-contains-05]
= xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::contains
:relfileprefix: ../../
:mrdocs:

Return `true` if this set contains an element equivalent to `key`&period;

== Synopsis

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

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

== Return Value

`true` if an equivalent key is present, and `false` otherwise

== Parameters

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


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