[#absl-c_any_of]
= xref:absl.adoc[absl]::c&lowbar;any&lowbar;of
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;any&lowbar;of()` function to test if any element in a container fulfills a condition&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 Pred&gt;
constexpr
bool
c&lowbar;any&lowbar;of(
    C const& c,
    Pred&& pred);
----

== Return Value

`true` if `pred` returns `true` for at least one element of `c`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The container to test&period;
| *pred*
| The predicate applied to each element&period;
|===


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