absl::c_iota

Container-based version of the <numeric> std::iota() function to compute successive values of value, as if incremented with ++value after each element is written, and write them to the container.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename Sequence,
    typename T>
constexpr
void
c_iota(
    Sequence& sequence,
    T const& value);

Parameters

NameDescription
sequenceThe container to fill.
valueThe starting value written to the first element.