cpp/algorithm/ranges/iota

Fills the range with sequentially increasing values, starting with  and repetitively evaluating.

Equivalent operation:

Complexity
Exactly increments and assignments.