Boost logo

Boost :

Subject: Re: [boost] [Range] Confusing result of iterator_range::size()
From: michi7x7 (michi_at_[hidden])
Date: 2011-11-07 09:30:01


Hi,

>
> Well, iterator_range<T> is not a container. Could you elaborate on your
> view?
>

That's why it probably shouldn't provide size() at all. distance() might
have been a better option for the name.

As long as it's name is size() it should return size_t IMHO.

Regards,

michi7x7


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