Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsSparseElement.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISSPARSEELEMENT_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISSPARSEELEMENT_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/sparse/SparseElement.h
>
44
#include <
blaze/util/IntegralConstant.h
>
45
#include <
blaze/util/typetraits/IsBaseOf.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
68
template
<
typename
T >
69
struct
IsSparseElement
70
:
public
BoolConstant
< IsBaseOf_v<SparseElement,T> && !IsBaseOf_v<T,SparseElement> >
71
{};
72
//*************************************************************************************************
73
74
75
//*************************************************************************************************
88
template
<
typename
T >
89
constexpr
bool
IsSparseElement_v
=
IsSparseElement<T>::value
;
90
//*************************************************************************************************
91
92
}
// namespace blaze
93
94
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsBaseOf.h
Header file for the IsBaseOf type trait.
blaze::IsSparseElement_v
constexpr bool IsSparseElement_v
Auxiliary variable template for the IsSparseElement type trait.
Definition
IsSparseElement.h:89
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
SparseElement.h
Header file for the SparseElement base class.
blaze::IsSparseElement
Compile time check whether the given type is a sparse element type.
Definition
IsSparseElement.h:71
Generated by
1.18.0