[#absl-c_for_each] = xref:absl.adoc[absl]::c_for_each :relfileprefix: ../ :mrdocs: Container‐based version of the <algorithm> `std::for_each()` function to apply a function to a container's elements. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename Function> constexpr std::decay_t<Function> c_for_each( C&& c, Function&& f); ---- == Return Value A copy of `f` after it has been applied to every element. == Parameters [cols="1,4"] |=== | Name| Description | *c* | The container whose elements to visit. | *f* | The function applied to each element. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#