Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2006-09-27 05:59:58


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

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