Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsComputation.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISCOMPUTATION_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISCOMPUTATION_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/expressions/Computation.h
>
44
#include <
blaze/util/IntegralConstant.h
>
45
#include <
blaze/util/typetraits/IsBaseOf.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
69
template
<
typename
T >
70
struct
IsComputation
71
:
public
BoolConstant
< IsBaseOf_v<Computation,T> && !IsBaseOf_v<T,Computation> >
72
{};
73
//*************************************************************************************************
74
75
76
//*************************************************************************************************
89
template
<
typename
T >
90
constexpr
bool
IsComputation_v
=
IsComputation<T>::value
;
91
//*************************************************************************************************
92
93
}
// namespace blaze
94
95
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsBaseOf.h
Header file for the IsBaseOf type trait.
Computation.h
Header file for the Computation base class.
blaze::IsComputation_v
constexpr bool IsComputation_v
Auxiliary variable template for the IsComputation type trait.
Definition
IsComputation.h:90
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsComputation
Compile time check whether the given type is a computational expression template.
Definition
IsComputation.h:72
Generated by
1.18.0