[fusion] view generators

Are there plans for creating generator templates for views? This is especially useful when working with lambda expressions for a transformation function. For instance, it would be really helpful if a user could do: void foo() { // Assume proper initialization vector< int*, char*, float* > iterators; bar( make_transform_view( iterators, *_1 ) ); } -- -Matt Calabrese

Matt Calabrese wrote:
Are there plans for creating generator templates for views? This is especially useful when working with lambda expressions for a transformation function. For instance, it would be really helpful if a user could do:
void foo() { // Assume proper initialization vector< int*, char*, float* > iterators;
bar( make_transform_view( iterators, *_1 ) );
I think that is just: bar(transform(iterators, *_1)); , no? Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
participants (2)
-
Joel de Guzman
-
Matt Calabrese