Boost logo

Boost :

Subject: Re: [boost] [range] irange is not very eloquent
From: Neil Groves (neil_at_[hidden])
Date: 2010-04-28 02:45:54


On Tue, Apr 27, 2010 at 11:55 PM, vicente.botet <vicente.botet_at_[hidden]>wrote:

> Hi,
>
> I have find the function 'irange' in the section "Provided Ranges".
>
> template<class Integer>
> integer_range< range_detail::integer_iterator<Integer> >
> irange(Integer first, Integer last);
>
> I will expect in this section ranges and not functions.
>
>
It isn't a range, it is a function. The return type is iterator_range<
range_detail::integer_iterator<Integer> >.

> This function allows to treat integers as a model of the Random Access
> Range Concept. I find the name not very eloquent. What about
> make_integer_range, for example?
>
> BTW, I don't find the documentation of the the class integer_range. Where
> it is documented?
>
>
It is documented under iterator_range.

> Best,
> _____________________
> Vicente Juan Botet Escribá
> http://viboes.blogspot.com/
>
> Regards,
Neil Groves


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk