Boost logo

Boost :

Subject: Re: [boost] [patch] first_iterator, second_iterator?
From: Daniel Colascione (daniel_at_[hidden])
Date: 2010-01-07 16:56:58


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/7/10 6:25 AM, Mathias Gaunard wrote:
> Daniel Colascione wrote:
>> Iterating over the first and second elements of a collection of pairs is
>> a pretty common problem. Would it be possible to get something like the
>> following into boost?
>
> Isn't that a trivial application of transform_iterator?
>

Sure, it can be implemented via transform_iterator too. And it is a
trivial application. But it serves two purposes:

1) provides commonly-needed functionality with only a little additional code

2) provides examples for library users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAktGWKoACgkQ17c2LVA10VsawgCgj1TBlPOLeIoaxub541hdxVWY
FFMAoJovYYwOPtseJlDbCxGUOVr+jlfK
=3w8v
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk