1 #ifndef _midge_typelength_hh_ 2 #define _midge_typelength_hh_ 11 template<
class... x_types >
using type_length = std::integral_constant< std::size_t,
sizeof...(x_types) >;
type_rename< x_list, type_length > type_size
Calculates the number of types in type list x_list; returns it as type_size::value.
typename type_rename_impl< x_a, x_b >::type type_rename
Replaces type A with type B; e.g. type_rename<type_list<int, float>, std::pair> –> std::pair<int...
std::integral_constant< std::size_t, sizeof...(x_types) > type_length
Calculates the number of types in template pack x_types; returns it as type_length::value.