absl::c_fill

Container-based version of the <algorithm> std::fill() function to fill a container with some value.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename T>
constexpr
void
c_fill(
    C&& c,
    T const& value)
requires container_algorithm_internal::IsPermissibleDestinationRange<C>::value;

Parameters

NameDescription
cThe container to fill.
valueThe value assigned to each element.