Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
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/IntegralConstant.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// CLASS DEFINITION
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
85
template
<
typename
T >
86
struct
IsAligned
87
:
public
FalseType
88
{};
89
//*************************************************************************************************
90
91
92
//*************************************************************************************************
97
template
<
typename
T >
98
struct
IsAligned
< const T >
99
:
public
IsAligned
<T>
100
{};
102
//*************************************************************************************************
103
104
105
//*************************************************************************************************
110
template
<
typename
T >
111
struct
IsAligned< volatile T >
112
:
public
IsAligned<T>
113
{};
115
//*************************************************************************************************
116
117
118
//*************************************************************************************************
123
template
<
typename
T >
124
struct
IsAligned
< const volatile T >
125
:
public
IsAligned
<T>
126
{};
128
//*************************************************************************************************
129
130
131
//*************************************************************************************************
144
template
<
typename
T >
145
constexpr
bool
IsAligned_v
=
IsAligned<T>::value
;
146
//*************************************************************************************************
147
148
}
// namespace blaze
149
150
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsAligned_v
constexpr bool IsAligned_v
Auxiliary variable template for the IsAligned type trait.
Definition
IsAligned.h:145
blaze::FalseType
BoolConstant< false > FalseType
Type/value traits base class.
Definition
IntegralConstant.h:121
blaze::IsAligned
Compile time check for the alignment of data types.
Definition
IsAligned.h:88
Generated by
1.18.0