Blaze  3.6
IsSquare.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISSQUARE_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISSQUARE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
44 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
86 template< typename T >
87 struct IsSquare
88  : public FalseType
89 {};
90 //*************************************************************************************************
91 
92 
93 //*************************************************************************************************
98 template< typename T >
99 struct IsSquare< const T >
100  : public IsSquare<T>
101 {};
103 //*************************************************************************************************
104 
105 
106 //*************************************************************************************************
111 template< typename T >
112 struct IsSquare< volatile T >
113  : public IsSquare<T>
114 {};
116 //*************************************************************************************************
117 
118 
119 //*************************************************************************************************
124 template< typename T >
125 struct IsSquare< const volatile T >
126  : public IsSquare<T>
127 {};
129 //*************************************************************************************************
130 
131 
132 //*************************************************************************************************
145 template< typename T >
147 //*************************************************************************************************
148 
149 } // namespace blaze
150 
151 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Compile time check for square matrices.This type trait tests whether or not the given template parame...
Definition: IsSquare.h:87
Header file for the IntegralConstant class template.
constexpr bool IsSquare_v
Auxiliary variable template for the IsSquare type trait.The IsSquare_v variable template provides a c...
Definition: IsSquare.h:146