Metafunction that wraps a non-tuple type into a tuple of size one. If the type is already a tuple, it acts as an identity. More...
Static Public Member Functions | |
template<typename U > | |
static type | apply (U &&u) |
Public Types | |
using | type = stapl::tuple< T > |
Metafunction that wraps a non-tuple type into a tuple of size one. If the type is already a tuple, it acts as an identity.
For example, ensure_tuple<char> would return tuple<char> but ensure_tuple<tuple<char,float>> would return tuple<char,float>.
T | The type to obtain the tuple from. |