Boost logo

Boost :

Subject: Re: [boost] [range] - Proposal to change the indexed range adaptor
From: David Abrahams (dave_at_[hidden])
Date: 2010-11-01 10:54:27

At Sun, 31 Oct 2010 20:43:42 +0000,
Neil Groves wrote:
> // After my proposed modification, the return type becomes a
> // pair of the index and the original reference type of the
> // underlying iterator/range.

Copying those elements into the pair could get expensive. Maybe you
want to wrap a counting_iterator around that iterator; just a thought.

Dave Abrahams
BoostPro Computing

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