Boost logo

Boost :

From: David Bergman (David.Bergman_at_[hidden])
Date: 2006-07-25 12:58:36


I wrote:

> > Ok, so
>
> >
>
> > struct Map { template<typename T> struct apply {
> typedef int type;
>
> > }; };
>
> >
>
> > is a "lambda expression" then?

David Abrahams wrote:
 
> No but,
>
>
>
> Map
>
>
>
> is a lambda expression.

Did you honestly think that I was refering to the *definition* per se, and
not the *defined entity* (Map)? ...

The reason that "metafunctor" is not that intimidating to more junior
(w.r.t. meta programming) is that they have learned the use of "functors" in
generic algorithms and such in C++. And it seems to me that things being
applicable via mpl::apply is the closest we get to that notion.

/David


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