Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsDenseVector.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISDENSEVECTOR_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISDENSEVECTOR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/math/expressions/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
VT,
bool
TF >
62
TrueType
isDenseVector_backend(
const
volatile
DenseVector<VT,TF>
* );
63
64
FalseType
isDenseVector_backend( ... );
66
//*************************************************************************************************
67
68
69
//*************************************************************************************************
90
template
<
typename
T >
91
struct
IsDenseVector
92
:
public
decltype( isDenseVector_backend( std::declval<T*>() ) )
93
{};
94
//*************************************************************************************************
95
96
97
//*************************************************************************************************
102
template
<
typename
T >
103
struct
IsDenseVector
<T&>
104
:
public
FalseType
105
{};
107
//*************************************************************************************************
108
109
110
//*************************************************************************************************
123
template
<
typename
T >
124
constexpr
bool
IsDenseVector_v
=
IsDenseVector<T>::value
;
125
//*************************************************************************************************
126
127
}
// namespace blaze
128
129
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::DenseVector
Base class for N-dimensional dense vectors.
Definition
DenseVector.h:77
blaze::IsDenseVector_v
constexpr bool IsDenseVector_v
Auxiliary variable template for the IsDenseVector type trait.
Definition
IsDenseVector.h:124
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 expression class templates.
blaze::IsDenseVector
Compile time check for dense vector types.
Definition
IsDenseVector.h:93
Generated by
1.18.0