Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2008-07-16 22:36:07


Steven Watanabe wrote:
> AMDG
>
> Joel de Guzman wrote:
>> Yeah, I agree. All views are inherently "lazy" anyway. So it's
>> not a good name. More suggestions, anyone, please? functional_view?
>> computed_view?
>
> I just looked at lazy_sequence.hpp. Isn't it equivalent to
> transform(mpl::range_c<int, 0, N>(), f)?

Hah! Yeah. You just spoiled the fun! ;-)

>> 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?

Either way, what we should probably do is add some of these
examples with accompanying docs.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

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