Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
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
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// CLASS DEFINITION
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
68
template
<
typename
... T >
69
struct
CommonType
70
{
71
public
:
72
//**********************************************************************************************
74
using
Type
=
typename
std::common_type<T...>::type;
76
//**********************************************************************************************
77
};
78
//*************************************************************************************************
79
80
81
//*************************************************************************************************
94
template
<
typename
... T >
95
using
CommonType_t
=
typename
CommonType
<T...>
::Type
;
96
//*************************************************************************************************
97
98
}
// namespace blaze
99
100
#endif
blaze::Type
blaze::CommonType_t
typename CommonType< T... >::Type CommonType_t
Auxiliary alias declaration for the CommonType type trait.
Definition
CommonType.h:95
blaze::CommonType
Deduction of a type common to several types.
Definition
CommonType.h:70
Generated by
1.18.0