Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsVector.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISVECTOR_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISVECTOR_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
isVector_backend(
const
volatile
Vector<VT,TF>
* );
63
64
FalseType
isVector_backend( ... );
66
//*************************************************************************************************
67
68
69
//*************************************************************************************************
90
91
template
<
typename
T >
92
struct
IsVector
93
:
public
decltype( isVector_backend( std::declval<T*>() ) )
94
{};
95
//*************************************************************************************************
96
97
98
//*************************************************************************************************
103
template
<
typename
T >
104
struct
IsVector
<T&>
105
:
public
FalseType
106
{};
108
//*************************************************************************************************
109
110
111
//*************************************************************************************************
124
template
<
typename
T >
125
constexpr
bool
IsVector_v
=
IsVector<T>::value
;
126
//*************************************************************************************************
127
128
}
// namespace blaze
129
130
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::Vector
Base class for N-dimensional vectors.
Definition
Vector.h:82
blaze::IsVector_v
constexpr bool IsVector_v
Auxiliary variable template for the IsVector type trait.
Definition
IsVector.h:125
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::IsVector
Compile time check for vector types.
Definition
IsVector.h:94
Generated by
1.18.0