Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsView.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISVIEW_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISVIEW_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/math/expressions/View.h
>
45
#include <
blaze/util/IntegralConstant.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
61
template
<
typename
U >
62
TrueType
isView_backend(
const
volatile
View<U>
* );
63
64
FalseType
isView_backend( ... );
66
//*************************************************************************************************
67
68
69
//*************************************************************************************************
100
template
<
typename
T >
101
struct
IsView
102
:
public
decltype( isView_backend( std::declval<T*>() ) )
103
{};
104
//*************************************************************************************************
105
106
107
//*************************************************************************************************
112
template
<
typename
T >
113
struct
IsView
<T&>
114
:
public
FalseType
115
{};
117
//*************************************************************************************************
118
119
120
//*************************************************************************************************
133
template
<
typename
T >
134
constexpr
bool
IsView_v
=
IsView<T>::value
;
135
//*************************************************************************************************
136
137
}
// namespace blaze
138
139
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
View.h
Header file for the View base class.
blaze::IsView_v
constexpr bool IsView_v
Auxiliary variable template for the IsView type trait.
Definition
IsView.h:134
blaze::FalseType
BoolConstant< false > FalseType
Type/value traits base class.
Definition
IntegralConstant.h:121
blaze::TrueType
BoolConstant< true > TrueType
Type traits base class.
Definition
IntegralConstant.h:132
blaze::IsView
Compile time check for views.
Definition
IsView.h:103
blaze::View
Base class for all views.
Definition
View.h:67
Generated by
1.18.0