
24 Jul
2009
24 Jul
'09
5:24 p.m.
on Fri Jul 24 2009, "Stewart, Robert" <Robert.Stewart-AT-sig.com> wrote:
That would limit ranges because there are ranges that are not pairs of iterators.
All ranges can be expressed as pairs of iterators, so I hardly see how that limits anything.
Not true. Some ranges can be generated on the fly based upon a predicate (either provided or built into the range type).
It's possible to create an iterator type that can express the same range. However, it may be ugly and less efficient than necessary. The fundamental constraint is that a range built of iterators must be expressed as two copies of the same datatype, and some ranges don't fit that paradigm well. -- Dave Abrahams BoostPro Computing http://www.boostpro.com