MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
boost::mpl11::cast< From, To > Struct Template Reference

Metafunction class converting an object of the From datatype to an object of the To datatype. More...

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

Detailed Description

template<typename From, typename To>
struct boost::mpl11::cast< From, To >

Metafunction class converting an object of the From datatype to an object of the To datatype.

By default, cast does not perform anything if From and To are the same datatypes. However, it must be specialized to customize its behavior further. Note that the arguments to cast<From, To> are data constructors, which do not need to be boxed. Hence, cast is a call-by-value metafunction class.