Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-16 22:52:49


AMDG

Joel de Guzman wrote:
>>> Man! The fold algorithm can even be implemented in terms of this
>>> view. The only difference is that each "fold" is computed along the
>>> way. Maybe we should just call it "fold_view" ?
>
> So, can this too be implemented in terms of fusion/mpl alone?

I don't think so. The state would need to be stored in
the iterator and the function object called by next(), right?
None of the available fusion views supports this.

In Christ,
Steven Watanabe


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