Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
IsSame.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPETRAITS_ISSAME_H_
36
#define _BLAZE_UTIL_TYPETRAITS_ISSAME_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/IntegralConstant.h
>
44
#include <
blaze/util/typetraits/RemoveCV.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS DEFINITION
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
74
template
<
typename
A,
typename
B >
75
struct
IsStrictlySame
76
:
public
FalseType
77
{};
78
//*************************************************************************************************
79
80
81
//*************************************************************************************************
84
template
<
typename
T >
85
struct
IsStrictlySame
<T,T>
86
:
public
TrueType
87
{};
89
//*************************************************************************************************
90
91
92
//*************************************************************************************************
105
template
<
typename
A,
typename
B >
106
constexpr
bool
IsStrictlySame_v
=
IsStrictlySame<A,B>::value
;
107
//*************************************************************************************************
108
109
110
111
112
//=================================================================================================
113
//
114
// CLASS DEFINITION
115
//
116
//=================================================================================================
117
118
//*************************************************************************************************
138
template
<
typename
A,
typename
B >
139
struct
IsSame
140
:
public
BoolConstant
< IsStrictlySame_v< RemoveCV_t<A>, RemoveCV_t<B> > >
141
{};
142
//*************************************************************************************************
143
144
145
//*************************************************************************************************
158
template
<
typename
A,
typename
B >
159
constexpr
bool
IsSame_v
=
IsSame<A,B>::value
;
160
//*************************************************************************************************
161
162
}
// namespace blaze
163
164
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
RemoveCV.h
Header file for the RemoveCV type trait.
blaze::IsSame_v
constexpr bool IsSame_v
Auxiliary variable template for the IsSame type trait.
Definition
IsSame.h:159
blaze::IsStrictlySame_v
constexpr bool IsStrictlySame_v
Auxiliary variable template for the IsStrictlySame type trait.
Definition
IsSame.h:106
blaze::FalseType
BoolConstant< false > FalseType
Type/value traits base class.
Definition
IntegralConstant.h:121
blaze::TrueType
BoolConstant< true > TrueType
Type traits base class.
Definition
IntegralConstant.h:132
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsSame
Type relationship analysis.
Definition
IsSame.h:141
blaze::IsStrictlySame
Compile time type relationship analysis.
Definition
IsSame.h:77
Generated by
1.18.0