
19 Oct
2011
19 Oct
'11
5:03 p.m.
On Wed, Oct 19, 2011 at 7:01 PM, pavel <paul.cpprules@gmail.com> wrote:
Olaf wrote on Wednesday, October 19, 2011 at 1:30:03:
Hi,
iterator_range returns a signed size. Is this correct? IMO it should return size_t.
given two arbitrary valid random access iterators (from one range) let you know the distance between them
it is either positive or negative (or 0) dependent on the order of the given iterators
i'd say difference type should be ptrdiff_t in the general case
We're not talking about difference_type. We're talking about the return type of size(). Olaf