Boost logo

Boost :

From: Martin Weiser (weiser_at_[hidden])
Date: 2000-01-03 05:32:37


"dave abrahams" <abraham-_at_[hidden]> wrote:
original article:http://www.egroups.com/group/boost/?start=1516
> In article <gpfn6sgbrpa0u72nam04to424gu91rt5c0_at_[hidden]> , Herb Sutter
> <hsutter_at_[hidden]> wrote in a post to comp.lang.c++.moderated:
>
> > Option 3: Write for_each with expression templates (1 line, plus no
> > recalculation of container.end() and no need to remember to write
++i,
> > plus x doesn't need to be an int, plus maybe other benefits...)
> >
> > std::for_each( container.begin(), container.end(), Elem() += x );
>
> Of COURSE! I should have seen this before! Now somebody should write a
> little expression template library for boost. This obviously fits our
> charter (I think)!

Perhaps you should contact Gary Powell before starting an ET library
for this kind of task. He implemented such a library together with
Peter Higley and submitted a paper about this library to C++Report.

You can reach him at gary.powell_at_sierra.com.

Martin


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