
26 Feb
2009
26 Feb
'09
10:57 p.m.
Thorsten Ottosen wrote:
sentinel range (a range denoted by an iterator and a sentinel, a NTBS is an example)
I believe such concepts could also clean up the char* vs. char[] for NTBS ambiguities as well as keep cstr library efficiency.
You just need to allow the past-the-end iterator to be of a different type for that. That way, you can get something equivalent to a hasNext() function.