VCCC  2024.05
VisualCamp Common C++ library
bigger_type

get biggest type among template parameters More...

Detailed Description

bigger_type_t<int, long, long long> x = 3;

Classes

struct  bigger_type<... >
 
struct  bigger_type< T >
 
struct  bigger_type< T1, T2 >
 
struct  bigger_type< T1, T2, Ts... >
 
struct  signed_bigger_type<... >
 
struct  signed_bigger_type< T >
 
struct  signed_bigger_type< T1, T2 >
 
struct  signed_bigger_type< T1, T2, Ts... >
 
struct  unsigned_bigger_type<... >
 
struct  unsigned_bigger_type< T >
 
struct  unsigned_bigger_type< T1, T2 >
 
struct  unsigned_bigger_type< T1, T2, Ts... >
 

Typedefs

template<typename ... Ts>
using bigger_type_t = typename bigger_type< Ts... >::type
 
template<typename ... Ts>
using signed_bigger_type_t = typename signed_bigger_type< Ts... >::type
 
template<typename ... Ts>
using unsigned_bigger_type_t = typename unsigned_bigger_type< Ts... >::type
 

Typedef Documentation

◆ bigger_type_t

using bigger_type_t = typename bigger_type<Ts...>::type

◆ signed_bigger_type_t

using signed_bigger_type_t = typename signed_bigger_type<Ts...>::type

◆ unsigned_bigger_type_t

using unsigned_bigger_type_t = typename unsigned_bigger_type<Ts...>::type