[#absl-c_linear_search]
= xref:absl.adoc[absl]::c&lowbar;linear&lowbar;search
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of `absl&colon;&colon;linear&lowbar;search()` for performing a linear search within a container&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C,
    typename EqualityComparable&gt;
constexpr
bool
c&lowbar;linear&lowbar;search(
    C const& c,
    EqualityComparable&& value);
----

== Description

For a generalization that uses a predicate, see `absl&colon;&colon;c&lowbar;any&lowbar;of()`&period;

== Return Value

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

== Parameters

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


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