Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsProxy.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISPROXY_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISPROXY_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/math/proxy/Forward.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
PT,
typename
RT >
62
TrueType
isProxy_backend(
const
volatile
Proxy<PT,RT>
* );
63
64
FalseType
isProxy_backend( ... );
66
//*************************************************************************************************
67
68
69
//*************************************************************************************************
93
template
<
typename
T >
94
struct
IsProxy
95
:
public
decltype( isProxy_backend( std::declval<T*>() ) )
96
{};
97
//*************************************************************************************************
98
99
100
//*************************************************************************************************
105
template
<
typename
T >
106
struct
IsProxy
<T&>
107
:
public
FalseType
108
{};
110
//*************************************************************************************************
111
112
113
//*************************************************************************************************
126
template
<
typename
T >
127
constexpr
bool
IsProxy_v
=
IsProxy<T>::value
;
128
//*************************************************************************************************
129
130
}
// namespace blaze
131
132
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::Proxy
Proxy base class.
Definition
Proxy.h:169
blaze::IsProxy_v
constexpr bool IsProxy_v
Auxiliary variable template for the IsProxy type trait.
Definition
IsProxy.h:127
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
Forward.h
Header file for all forward declarations for proxies.
blaze::IsProxy
Compile time check for proxy types.
Definition
IsProxy.h:96
Generated by
1.18.0