
14 Nov
2007
14 Nov
'07
12:17 p.m.
shunsuke skrev:
Thorsten Ottosen wrote:
Really, you're returning the difference_type and not the size_type? Yes, that was the intension. Iterators don't have a size_type per se, and so it complicated the whole thing a little to make the user worry about this.
I think that "size" was an inappropriate name. I don't know why "distance_of_random_access" was named "size". Iterators don't have a "size" per se. :-)
no, but an half-open iterator range [x,y) has a size. -Thorsten