Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsScalar.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISSCALAR_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISSCALAR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/HasCompositeType.h
>
44
#include <
blaze/math/typetraits/IsProxy.h
>
45
#include <
blaze/math/typetraits/IsSIMDPack.h
>
46
#include <
blaze/util/IntegralConstant.h
>
47
#include <
blaze/util/typetraits/IsPointer.h
>
48
#include <
blaze/util/typetraits/IsReference.h
>
49
50
51
namespace
blaze {
52
53
//=================================================================================================
54
//
55
// CLASS DEFINITION
56
//
57
//=================================================================================================
58
59
//*************************************************************************************************
78
79
template
<
typename
T >
80
struct
IsScalar
81
:
public
BoolConstant
< !HasCompositeType_v<T> &&
82
!IsProxy_v<T> &&
83
!IsSIMDPack_v<T> &&
84
!IsReference_v<T> &&
85
!IsPointer_v<T> >
86
{};
87
//*************************************************************************************************
88
89
90
//*************************************************************************************************
103
template
<
typename
T >
104
constexpr
bool
IsScalar_v
=
IsScalar<T>::value
;
105
//*************************************************************************************************
106
107
}
// namespace blaze
108
109
#endif
HasCompositeType.h
Header file for the HasCompositeType type trait.
IntegralConstant.h
Header file for the IntegralConstant class template.
IsPointer.h
Header file for the IsPointer type trait.
IsProxy.h
Header file for the IsProxy type trait.
IsReference.h
Header file for the IsReference type trait.
IsSIMDPack.h
Header file for the IsSIMDPack type trait.
blaze::IsScalar_v
constexpr bool IsScalar_v
Auxiliary variable template for the IsScalar type trait.
Definition
IsScalar.h:104
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsScalar
Compile time check for scalar types.
Definition
IsScalar.h:86
Generated by
1.18.0