[mpl] Metafunction to extract type

Does MPL already have a metafunction which takes a type, which is a nullary metafunction, and returns the nullary metafunction's nested type ? As in: template < class T > struct get_type : T { };

On 27/01/11 19:21, Edward Diener wrote:
Does MPL already have a metafunction which takes a type, which is a nullary metafunction, and returns the nullary metafunction's nested type ? As in:
template < class T
struct get_type : T { };
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
mpl::identity<T>

I, of course, read too fast. Discard previous answer. Now question, why do you need this apparently useless feature ? can't you pass nullary metafunction along ?

On 1/27/2011 1:27 PM, Joel Falcou wrote:
I, of course, read too fast. Discard previous answer. Now question, why do you need this apparently useless feature ? can't you pass nullary metafunction along ?
You are correct. There is no need for it. I had not thought about what I was trying to do in my particular instance enough.
participants (2)
-
Edward Diener
-
Joel Falcou