IsIdentity.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISIDENTITY_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISIDENTITY_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
45 #include <blaze/util/mpl/And.h>
47 
48 
49 namespace blaze {
50 
51 //=================================================================================================
52 //
53 // CLASS DEFINITION
54 //
55 //=================================================================================================
56 
57 //*************************************************************************************************
89 template< typename T >
90 struct IsIdentity
91  : public BoolConstant< And< IsUniLower<T>, IsUniUpper<T> >::value >
92 {};
93 //*************************************************************************************************
94 
95 
96 //*************************************************************************************************
101 template< typename T >
102 struct IsIdentity< const T >
103  : public IsIdentity<T>
104 {};
106 //*************************************************************************************************
107 
108 
109 //*************************************************************************************************
114 template< typename T >
115 struct IsIdentity< volatile T >
116  : public IsIdentity<T>
117 {};
119 //*************************************************************************************************
120 
121 
122 //*************************************************************************************************
127 template< typename T >
128 struct IsIdentity< const volatile T >
129  : public IsIdentity<T>
130 {};
132 //*************************************************************************************************
133 
134 } // namespace blaze
135 
136 #endif
Header file for the IsUniUpper type trait.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Header file for the And class template.
Header file for the IsUniLower type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time check for identity matrices.This type trait tests whether or not the given template para...
Definition: IsIdentity.h:90
Header file for the IntegralConstant class template.