Blaze  3.6
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 
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
74 template< typename A, typename B >
76  : public FalseType
77 {};
78 //*************************************************************************************************
79 
80 
81 //*************************************************************************************************
83 template< typename T >
85 struct IsStrictlySame<T,T>
86  : public TrueType
87 {};
89 //*************************************************************************************************
90 
91 
92 //*************************************************************************************************
105 template< typename A, typename B >
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
Header file for the RemoveCV type trait.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
Type relationship analysis.This class tests if the two data types A and B are equal....
Definition: IsSame.h:139
constexpr bool IsStrictlySame_v
Auxiliary variable template for the IsStrictlySame type trait.The IsStrictlySame_v variable template ...
Definition: IsSame.h:106
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Compile time type relationship analysis.This class tests if the two data types A and B are equal....
Definition: IsSame.h:75
Header file for the IntegralConstant class template.
constexpr bool IsSame_v
Auxiliary variable template for the IsSame type trait.The IsSame_v variable template provides a conve...
Definition: IsSame.h:159