
John Torjo <john.lists@torjo.com> writes:
Like Robert I am uncomfortable with a range concept that has iteration capabilities. For one thing, standard containers don't satisfy that concept, and it seems to me that a container ought to be a range without any special adaptation. Furthermore
Well... This was to allow easy manual loops.
I have doubts about how well this "range/iterator" concept maps onto bidirectional and random access. That said...
It maps ok with bidirectional/random access. If an iterator has a given iterator category, the range will preserve it. I have used it in code, and it's quite powerful.
Don't you need a current position, start and an end for bidirectional iteration? Forward "ranges" just get a current position and an end. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com