Boost logo

Boost :

Subject: Re: [boost] [Range] Confusing result of iterator_range::size()
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2011-11-07 06:55:17


Den 07-11-2011 11:08, Olaf van der Spek skrev:

> 1. The intention of the iterator_range class is to encapsulate two
> iterators so they fulfill the Forward Range concept.
> 2. Size type
> boost::range_size<X>::type
> An unsigned integral type that can represent any nonnegative value of
> the Range's distance type.
>
> 1. http://www.boost.org/doc/libs/1_47_0/libs/range/doc/html/range/reference/utilities/iterator_range.html
> 2. http://www.boost.org/doc/libs/1_47_0/libs/range/doc/html/range/concepts/forward_range.html

Yeah, that's just some docs that were not updated when we made the change.

-Thorsten


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