Container-based version of the <algorithm> std::for_each() function to apply a function to a container's elements.
Declared in <absl/algorithm/container.h>
template<
typename C,
typename Function>
constexpr
std::decay_t<Function>
c_for_each(
C&& c,
Function&& f);
A copy of f after it has been applied to every element.
| Name | Description |
|---|---|
| c | The container whose elements to visit. |
| f | The function applied to each element. |