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