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 
45 
46 namespace blaze {
47 
48 //=================================================================================================
49 //
50 // CLASS DEFINITION
51 //
52 //=================================================================================================
53 
54 //*************************************************************************************************
70 template< typename T, T N >
71 struct IntegralConstant : public std::integral_constant<T,N>
72 {
73  //**********************************************************************************************
75  using ValueType = T;
76  using Type = IntegralConstant<T,N>;
78  //**********************************************************************************************
79 };
80 //*************************************************************************************************
81 
82 
83 //*************************************************************************************************
99 template< bool B >
101 //*************************************************************************************************
102 
103 } // namespace blaze
104 
105 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57