]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/range/doc/reference/algorithm_ext/iota.qbk
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / range / doc / reference / algorithm_ext / iota.qbk
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 ``
11 template<class ForwardRange, class Value>
12 ForwardRange& 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
18 to `x + boost::distance(boost::begin(rng), it)`
19
20 [heading Definition]
21
22 Defined 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
31 Linear. Exactly `distance(rng)` assignments into `rng`.
32
33 [endsect]