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)
6 [section:irange irange]
11 template<class Integer>
12 iterator_range< range_detail::integer_iterator<Integer> >
13 irange(Integer first, Integer last);
15 template<class Integer, class StepSize>
16 iterator_range< range_detail::integer_iterator_with_step<Integer, StepSize> >
17 irange(Integer first, Integer last, StepSize step_size);
22 `irange` is a function to generate an Integer Range.
24 `irange` allows treating integers as a model of the __random_access_range__ Concept. It should be noted that the `first` and `last` parameters denoted a half-open range.
28 Defined in the header file `boost/range/irange.hpp`
30 [heading Requirements]
32 # `Integer` is a model of the `Integer` Concept.
33 # `StepSize` is a model of the `SignedInteger` Concept.
37 Constant. Since this function generates a new range the most significant performance cost is incurred through the iteration of the generated range.