Boost logo

Boost :

From: Hartmut Kaiser (HartmutKaiser_at_[hidden])
Date: 2005-02-12 01:43:39


 
David Abrahams wrote:

> > Transform_iterator _is_ part of boost already, the
> difference is, that
> > wave uses a slightly different version (for performance reasons the
> > version contained in Wave returns the transformed value by
> reference -
> > I don't know, whether this is commonly possible - in Wave
> it is used
> > to flatten a parse tree). That's the reason, why it is
> named ref_transform_iterator.
>
> The boost::transform_iterator also returns by reference, if
> you set it up right. No need for code duplication.

Even better, I'll look into it. The transform_iterator in Wave is perhaps an
overleft from the old IA library, I haven't looked into this for 2 years or
so...

Regards Hartmut


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