Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2019. The current version is 1.89.0.
template<class ForwardRange, class Value> ForwardRange& iota(ForwardRange& rng, Value x);
iota traverses forward
through rng, each element
y in rng
is assigned a value equivalent to x
+ boost::distance(boost::begin(rng), it)
Defined in the header file boost/range/algorithm_ext/iota.hpp
ForwardRange is a
model of the Forward
Range Concept.
Value is a model
of the Incrementable
Concept.
Linear. Exactly distance(rng) assignments into rng.