...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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
.