
17 Jul
2008
17 Jul
'08
2:36 a.m.
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