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

Name

Description

sequence

The container to fill.

value

The starting value written to the first element.

Created with MrDocs