Boost.Range

Function counting_range

The intention of the counting_range function is to construct a new range with iterators that are wrapped in a counting_iterator (from Boost.Iterator)

Synopsis

namespace boost
{
    template< class Incrementable > inline
    range< counting_iterator<Incrementable> >
    counting_range(Incrementable first, Incrementable last);

    template< class SinglePassRange > inline
    range< counting_iterator<typename range_iterator<SinglePassRange>::type >
    counting_range(const Range& rng);

    template< class SinglePassRange > inline
    range< counting_iterator<typename range_iterator<SinglePassRange>::type >
    counting_range(Range& rng);
            
} // namespace 'boost'
    

© Copyright Neil Groves 2009.

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)