Template Class identity

Class Documentation

template<typename T>
class identity

Some types are not not default constructible, and therefore cannot be used with boost::mpl::for_each as is. If we only need the type of the class during an operation, and do not need access to any of its methods, we can add a layer of indirection with a simple struct that IS default constructible that we CAN use.

Public Types

using type = T