]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/range/doc/reference/ranges/counting_range.qbk
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / range / doc / reference / ranges / counting_range.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:counting_range counting_range]
7
8 [heading Prototype]
9
10 ``
11 template< class Incrementable > inline
12 iterator_range< counting_iterator<Incrementable> >
13 counting_range(Incrementable first, Incrementable last);
14
15 template< class SinglePassRange > inline
16 iterator_range< counting_iterator<typename range_iterator<SinglePassRange>::type >
17 counting_range(const SinglePassRange& rng);
18
19 template< class SinglePassRange > inline
20 iterator_range< counting_iterator<typename range_iterator<SinglePassRange>::type >
21 counting_range(SinglePassRange& rng);
22 ``
23
24 [heading Description]
25
26 `counting_range` is a function to generator that generates an `iterator_range` wrapping a `counting_iterator` (from Boost.Iterator).
27
28 [heading Definition]
29
30 Defined in header file `boost/range/counting_range.hpp`
31
32 [heading Requirements]
33
34 # `Incrementable` is a model of the `Incrementable` Concept.
35
36 [endsect]