Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsRestricted.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISRESTRICTED_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISRESTRICTED_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
//*************************************************************************************************
80
template
<
typename
T >
81
struct
IsRestricted
82
:
public
FalseType
83
{};
84
//*************************************************************************************************
85
86
87
//*************************************************************************************************
92
template
<
typename
T >
93
struct
IsRestricted
< const T >
94
:
public
IsRestricted
<T>
95
{};
97
//*************************************************************************************************
98
99
100
//*************************************************************************************************
105
template
<
typename
T >
106
struct
IsRestricted< volatile T >
107
:
public
IsRestricted<T>
108
{};
110
//*************************************************************************************************
111
112
113
//*************************************************************************************************
118
template
<
typename
T >
119
struct
IsRestricted
< const volatile T >
120
:
public
IsRestricted
<T>
121
{};
123
//*************************************************************************************************
124
125
126
//*************************************************************************************************
139
template
<
typename
T >
140
constexpr
bool
IsRestricted_v
=
IsRestricted<T>::value
;
141
//*************************************************************************************************
142
143
}
// namespace blaze
144
145
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsRestricted_v
constexpr bool IsRestricted_v
Auxiliary variable template for the IsRestricted type trait.
Definition
IsRestricted.h:140
blaze::FalseType
BoolConstant< false > FalseType
Type/value traits base class.
Definition
IntegralConstant.h:121
blaze::IsRestricted
Compile time check for data types with restricted data access.
Definition
IsRestricted.h:83
Generated by
1.18.0