Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsOperation.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISOPERATION_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISOPERATION_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/expressions/Operation.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
//*************************************************************************************************
68
template
<
typename
T >
69
struct
IsOperation
70
:
public
BoolConstant
< IsBaseOf_v<Operation,T> && !IsBaseOf_v<T,Operation> >
71
{};
72
//*************************************************************************************************
73
74
75
//*************************************************************************************************
88
template
<
typename
T >
89
constexpr
bool
IsOperation_v
=
IsOperation<T>::value
;
90
//*************************************************************************************************
91
92
}
// namespace blaze
93
94
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsBaseOf.h
Header file for the IsBaseOf type trait.
Operation.h
Header file for the Operation base class.
blaze::IsOperation_v
constexpr bool IsOperation_v
Auxiliary variable template for the IsOperation type trait.
Definition
IsOperation.h:89
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsOperation
Compile time check whether the given type is an operational expression template.
Definition
IsOperation.h:71
Generated by
1.18.0