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`` 11template< class Incrementable > inline 12iterator_range< counting_iterator<Incrementable> > 13counting_range(Incrementable first, Incrementable last); 14 15template< class SinglePassRange > inline 16iterator_range< counting_iterator<typename range_iterator<SinglePassRange>::type > 17counting_range(const SinglePassRange& rng); 18 19template< class SinglePassRange > inline 20iterator_range< counting_iterator<typename range_iterator<SinglePassRange>::type > 21counting_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 30Defined 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] 37