MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
List of all members
boost::mpl11::datatype< ctor > Struct Template Reference

Returns the datatype of the given data constructor. More...

#include <boost/mpl11/fwd/core.hpp>

Detailed Description

template<typename ctor>
struct boost::mpl11::datatype< ctor >

Returns the datatype of the given data constructor.

By default, this metafunction returns ctor::mpl_datatype if that expression is valid, and Foreign otherwise. It can also be specialized to customize the datatype of data constructors without requiring the constructor to have a nested mpl_datatype type.

Note
This metafunction must be invoked with an unboxed type. The reason for this special behavior is to allow specialization by users.