Blaze 3.9
Loading...
Searching...
No Matches
IntegralConstant.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_INTEGRALCONSTANT_H_
36#define _BLAZE_UTIL_INTEGRALCONSTANT_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <type_traits>
44#include <blaze/util/Types.h>
45
46
47namespace blaze {
48
49//=================================================================================================
50//
51// CLASS DEFINITION
52//
53//=================================================================================================
54
55//*************************************************************************************************
71template< typename T, T N >
73 : public std::integral_constant<T,N>
74{
75 //**********************************************************************************************
77 using ValueType = T;
80 //**********************************************************************************************
81};
82//*************************************************************************************************
83
84
85
86
87//=================================================================================================
88//
89// ALIAS DECLARATIONS
90//
91//=================================================================================================
92
93//*************************************************************************************************
109template< bool B >
111//*************************************************************************************************
112
113
114//*************************************************************************************************
122//*************************************************************************************************
123
124
125//*************************************************************************************************
133//*************************************************************************************************
134
135
136//*************************************************************************************************
152template< bool B >
154//*************************************************************************************************
155
156
157//*************************************************************************************************
173template< char N >
175//*************************************************************************************************
176
177
178//*************************************************************************************************
194template< int N >
196//*************************************************************************************************
197
198
199//*************************************************************************************************
215template< long N >
217//*************************************************************************************************
218
219
220//*************************************************************************************************
236template< ptrdiff_t N >
238//*************************************************************************************************
239
240
241//*************************************************************************************************
257template< size_t N >
259//*************************************************************************************************
260
261
262
263
264//=================================================================================================
265//
266// GLOBAL FUNCTIONS
267//
268//=================================================================================================
269
270//*************************************************************************************************
279template< bool B >
281{
282 return BoolConstant<!B>();
283}
284//*************************************************************************************************
285
286
287//*************************************************************************************************
296template< bool B1, bool B2 >
301//*************************************************************************************************
302
303
304//*************************************************************************************************
313template< bool B1, bool B2 >
318//*************************************************************************************************
319
320} // namespace blaze
321
322#endif
decltype(auto) operator||(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Logical OR operator for two dense matrices.
Definition DMatDMatMapExpr.h:1850
decltype(auto) operator&&(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Logical AND operator for two dense matrices.
Definition DMatDMatMapExpr.h:1816
constexpr AlignmentFlag operator!(AlignmentFlag flag) noexcept
Negating the given alignment flag.
Definition AlignmentFlag.h:81
IntegralConstant< int, N > Int_t
Compile time integral constant wrapper for int.
Definition IntegralConstant.h:195
BoolConstant< false > FalseType
Type/value traits base class.
Definition IntegralConstant.h:121
IntegralConstant< ptrdiff_t, N > Ptrdiff_t
Compile time integral constant wrapper for ptrdiff_t.
Definition IntegralConstant.h:237
IntegralConstant< char, N > Char_t
Compile time integral constant wrapper for char.
Definition IntegralConstant.h:174
IntegralConstant< long, N > Long_t
Compile time integral constant wrapper for long.
Definition IntegralConstant.h:216
BoolConstant< true > TrueType
Type traits base class.
Definition IntegralConstant.h:132
IntegralConstant< bool, B > Bool_t
Compile time integral constant wrapper for bool.
Definition IntegralConstant.h:153
IntegralConstant< size_t, N > Size_t
Compile time integral constant wrapper for size_t.
Definition IntegralConstant.h:258
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition IntegralConstant.h:110
Generic wrapper for a compile time constant integral value.
Definition IntegralConstant.h:74
Header file for basic type definitions.