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