Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
mpl
Equal.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_MPL_EQUAL_H_
36
#define _BLAZE_UTIL_MPL_EQUAL_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/IntegralConstant.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// CLASS DEFINITION
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
71
template
<
typename
T1
// The type of the left-hand side operand
72
,
typename
T2 >
// The type of the right-hand side operand
73
using
Equal_t
=
Bool_t
< ( T1::value == T2::value ) >;
74
//*************************************************************************************************
75
76
77
//*************************************************************************************************
90
template
<
typename
T1
// The type of the left-hand side operand
91
,
typename
T2 >
// The type of the right-hand side operand
92
constexpr
bool
Equal_v
=
Equal_t<T1,T2>::value
;
93
//*************************************************************************************************
94
95
}
// namespace blaze
96
97
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::Equal_v
constexpr bool Equal_v
Auxiliary variable template for the Equal_t alias.
Definition
Equal.h:92
blaze::Equal_t
Bool_t<(T1::value==T2::value) > Equal_t
Compile time type comparison.
Definition
Equal.h:73
blaze::Bool_t
IntegralConstant< bool, B > Bool_t
Compile time integral constant wrapper for bool.
Definition
IntegralConstant.h:153
Generated by
1.18.0