Boost logo

Boost Users :

Subject: Re: [Boost-users] unzip iterator?
From: David Abrahams (dave_at_[hidden])
Date: 2009-02-17 13:09:44


on Tue Feb 17 2009, Neal Becker <ndbecker2-AT-gmail.com> wrote:

> I use an iterator adapator that converts a pair of scalar iterators into a
> complex iterator. But how to go the other direction? Take a complex iterator
> to a pair of scalar iterators.
>
> This is something like 'unzip'. Any thoughts?

It's just a projection; you could use transform_iterator.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net