
19 Oct
2011
19 Oct
'11
7:41 p.m.
On Wednesday, October 19, 2011 21:34:58 Olaf van der Spek wrote:
On Wed, Oct 19, 2011 at 9:09 PM, <andrey.semashev@gmail.com> wrote:
So bidirectional iterators, for instance, may denote a valid range that exceeds difference_type capacity. This is actually a little caveat in the Standard.
Is the type of std::distance unspecified then?
It's specified as difference_type. However the returned value of std::distance for this case is not covered by the Standard, AFAICT.