Joel de Guzman | 17 Jul 04:36

Re: [fusion] constructing all elements of the fusion vector with the same argument

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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Gmane