Boost logo

Boost :

Subject: Re: [boost] AlRangeExandrescu?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-07-23 18:49:10

Andrei Alexandrescu 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.
The issue is that expressing a range as a pair of iterators may not
always be optimal.

> You would pass two adjacent ranges, like D's bringToFront (a
> generalization of STL's rotate, see
> takes.

Nice idea, that could work.
But how can I generate those two adjacent ranges in the first place at
reasonable costs? Do ranges requires to provide a constant time
"complement" primitive?

Boost list run by bdawes at, gregod at, cpdaniel at, john at