Subject: Re: [boost] AlRangeExandrescu?
From: David Abrahams (dave_at_[hidden])
Date: 2009-07-24 13:24:21
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk