[#absl-c_contains]
= xref:absl.adoc[absl]::c&lowbar;contains
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;ranges&colon;&colon;contains()` C&plus;&plus;23 function to search a container for a value&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Sequence,
    typename T&gt;
constexpr
bool
c&lowbar;contains(
    Sequence const& sequence,
    T&& value);
----

== Return Value

`true` if `value` is found within `sequence`, otherwise `false`&period;

== Parameters

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


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