Blaze 3.9
CommonType.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_TYPETRAITS_COMMONTYPE_H_
36#define _BLAZE_UTIL_TYPETRAITS_COMMONTYPE_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <type_traits>
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// CLASS DEFINITION
51//
52//=================================================================================================
53
54//*************************************************************************************************
68template< typename... T >
70{
71 public:
72 //**********************************************************************************************
74 using Type = typename std::common_type<T...>::type;
76 //**********************************************************************************************
77};
78//*************************************************************************************************
79
80
81//*************************************************************************************************
94template< typename... T >
95using CommonType_t = typename CommonType<T...>::Type;
96//*************************************************************************************************
97
98} // namespace blaze
99
100#endif
typename CommonType< T... >::Type CommonType_t
Auxiliary alias declaration for the CommonType type trait.
Definition: CommonType.h:95
Deduction of a type common to several types.
Definition: CommonType.h:70