[#absl-linked_hash_set-contains]
= xref:absl.adoc[absl]::xref:absl/linked_hash_set.adoc[linked&lowbar;hash&lowbar;set]::contains
:relfileprefix: ../../
:mrdocs:

Returns whether the set contains an element with the given key&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;linked&lowbar;hash&lowbar;set&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename K = xref:absl/linked_hash_set/key_type.adoc[key&lowbar;type]&gt;
bool
contains(xref:absl/linked_hash_set.adoc[key&lowbar;arg&lt;K&gt;] const& key) const;
----

== Return Value

`true` if the set contains a matching element&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| The key to search for&period;
|===


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