|
Boost : |
From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2003-08-06 12:58:40
What is the problem adapting pair of iterators to scalar vectors to produce
an iterator with complex value type?
I am sure both old and new iterator adaptor easily allows it.
Gennadiy.
> -----Original Message-----
> From: Neal D. Becker [mailto:nbecker_at_[hidden]]
> Sent: Wednesday, August 06, 2003 1:31 PM
> To: boost_at_[hidden]
> Subject: [boost] Iterator adaptor question
>
>
> Some time back I mentioned I was interested in iterator
> adaptors to convert
> between vectors of complex and scalar. I have looked at
> using the iterator
> adaptor framework in boost. It appears that it is easy
> enough to adapt from
> a complex sequence to pick off either the real or imaginary
> part, but going
> the other direction is not feasible?
>
> You would need to adapt from a pair of iterators over scalars
> to output an
> iterator over complex.
>
> Will the "new" iterator adaptor framework help?
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk