IsUpper.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISUPPER_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISUPPER_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
46 #include <blaze/util/EnableIf.h>
48 
49 
50 namespace blaze {
51 
52 //=================================================================================================
53 //
54 // CLASS DEFINITION
55 //
56 //=================================================================================================
57 
58 //*************************************************************************************************
60 template< typename T > struct IsUpper;
62 //*************************************************************************************************
63 
64 
65 //*************************************************************************************************
70 template< typename T
71  , typename = void >
72 struct IsUpperHelper
73  : public BoolConstant< IsUniUpper_v<T> || IsStrictlyUpper_v<T> >
74 {};
75 
76 template< typename T > // Type of the operand
77 struct IsUpperHelper< T, EnableIf_t< IsExpression_v<T> > >
78  : public IsUpper< typename T::ResultType >::Type
79 {};
81 //*************************************************************************************************
82 
83 
84 //*************************************************************************************************
114 template< typename T >
115 struct IsUpper
116  : public IsUpperHelper<T>
117 {};
118 //*************************************************************************************************
119 
120 
121 //*************************************************************************************************
126 template< typename T >
127 struct IsUpper< const T >
128  : public IsUpper<T>
129 {};
131 //*************************************************************************************************
132 
133 
134 //*************************************************************************************************
139 template< typename T >
140 struct IsUpper< volatile T >
141  : public IsUpper<T>
142 {};
144 //*************************************************************************************************
145 
146 
147 //*************************************************************************************************
152 template< typename T >
153 struct IsUpper< const volatile T >
154  : public IsUpper<T>
155 {};
157 //*************************************************************************************************
158 
159 
160 //*************************************************************************************************
173 template< typename T >
174 constexpr bool IsUpper_v = IsUpper<T>::value;
175 //*************************************************************************************************
176 
177 } // namespace blaze
178 
179 #endif
Header file for the IsUniUpper type trait.
constexpr bool IsUpper_v
Auxiliary variable template for the IsUpper type trait.The IsUpper_v variable template provides a con...
Definition: IsUpper.h:174
Compile time check for upper triangular matrices.This type trait tests whether or not the given templ...
Definition: IsUpper.h:115
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.The EnableIf_t alias declaration provides a convenient...
Definition: EnableIf.h:138
Header file for the IsStrictlyUpper type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the EnableIf class template.
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant class template represents ...
Definition: IntegralConstant.h:101
constexpr bool IsExpression_v
Auxiliary variable template for the IsExpression type trait.The IsExpression_v variable template prov...
Definition: IsExpression.h:131
Header file for the IntegralConstant class template.
Header file for the IsExpression type trait class.