[#absl-c_for_each]
= xref:absl.adoc[absl]::c&lowbar;for&lowbar;each
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;for&lowbar;each()` function to apply a function to a container&apos;s elements&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 Function&gt;
constexpr
std::decay&lowbar;t&lt;Function&gt;
c&lowbar;for&lowbar;each(
    C&& c,
    Function&& f);
----

== Return Value

A copy of `f` after it has been applied to every element&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The container whose elements to visit&period;
| *f*
| The function applied to each element&period;
|===


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