Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsTemporary.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISTEMPORARY_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISTEMPORARY_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/IsExpression.h
>
44
#include <
blaze/math/typetraits/IsMatrix.h
>
45
#include <
blaze/math/typetraits/IsVector.h
>
46
#include <
blaze/util/IntegralConstant.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// CLASS DEFINITION
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
67
template
<
typename
T >
68
struct
IsTemporary
69
:
public
BoolConstant
< ( IsVector_v<T> || IsMatrix_v<T> ) && !IsExpression_v<T> >
70
{};
71
//*************************************************************************************************
72
73
74
//*************************************************************************************************
87
template
<
typename
T >
88
constexpr
bool
IsTemporary_v
=
IsTemporary<T>::value
;
89
//*************************************************************************************************
90
91
}
// namespace blaze
92
93
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsExpression.h
Header file for the IsExpression type trait class.
IsMatrix.h
Header file for the IsMatrix type trait.
IsVector.h
Header file for the IsVector type trait.
blaze::IsTemporary_v
constexpr bool IsTemporary_v
Auxiliary variable template for the IsTemporary type trait.
Definition
IsTemporary.h:88
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsTemporary
Compile time check whether the given type is a temporary vector or matrix type.
Definition
IsTemporary.h:70
Generated by
1.18.0