I see that
iterator_traits always defines a
I'm just wondering why, wouldn't that be
ptrdiff_t for every type? Is there an example of an iterator which doesn't use
ptrdiff_t? And if not why isn't
difference_type eliminated from
ptrdiff_t used everywhere?
I wrote a rope type that can deal with backing store greater than potential memory (that is, it can deal with 64-bit sequences even in 32-bit code). And so I had to use 64-bit size and difference types regardless of whether it was being compiled in 32 or 64 bit mode.