1[/ 2 Copyright 2010 Neil Groves 3 Distributed under the Boost Software License, Version 1.0. 4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5/] 6[section:iota iota] 7 8[heading Prototype] 9 10`` 11template<class ForwardRange, class Value> 12ForwardRange& iota(ForwardRange& rng, Value x); 13`` 14 15[heading Description] 16 17`iota` traverses forward through `rng`, each element `y` in `rng` is assigned a value equivalent 18to `x + boost::distance(boost::begin(rng), it)` 19 20[heading Definition] 21 22Defined in the header file `boost/range/algorithm_ext/iota.hpp` 23 24[heading Requirements] 25 26# `ForwardRange` is a model of the __forward_range__ Concept. 27# `Value` is a model of the `Incrementable` Concept. 28 29[heading Complexity] 30 31Linear. Exactly `distance(rng)` assignments into `rng`. 32 33[endsect] 34