Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-19 10:35:00

Thomas Witt <witt_at_[hidden]> writes:

> Herve,
> On Tuesday 19 November 2002 07:11, Herve Bronnimann wrote:
>> Dave, Jeremy: one iterator adaptor I needed often (and once again today)
>> is the projection on the first or second member of a pair. I could make
>> it using projection_iterator<> and select1st, except that select1st is
>> an std extension from SGI. I haven't found any other out-of-the-box way
>> to do this, did I miss something?
> Not as far as I can see.

Can't you just use make_projection_iterator with bind(&pair<X,Y>::first) ?

                       David Abrahams
   dave_at_[hidden] *
Boost support, enhancements, training, and commercial distribution

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