Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-07-31 12:37:07


From: "Anthony Williams" <anthwil_at_[hidden]>
[...]
>
> As for "metafunction class" vs "quoted metafunction", I would prefer
> something that more clearly meant "a class with a member template apply".
> "quoted metafunction" implies you can do quote<my_metafunction>, which you
> can't (I know lambda almost gives you that).

template<template<class> class MF> struct quote1
{
    template<class T> struct apply
    {
        typedef typename MF<T>::type type;
    };
};


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