Rows.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ROWS_H_
36 #define _BLAZE_MATH_TYPETRAITS_ROWS_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/mpl/SizeT.h>
44 #include <blaze/util/Types.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
75 template< typename T >
76 struct Rows : public SizeT<0UL>
77 {};
78 //*************************************************************************************************
79 
80 
81 //*************************************************************************************************
86 template< typename T >
87 struct Rows< const T > : public SizeT< Rows<T>::value >
88 {};
90 //*************************************************************************************************
91 
92 
93 //*************************************************************************************************
98 template< typename T >
99 struct Rows< volatile T > : public SizeT< Rows<T>::value >
100 {};
102 //*************************************************************************************************
103 
104 
105 //*************************************************************************************************
110 template< typename T >
111 struct Rows< const volatile T > : public SizeT< Rows<T>::value >
112 {};
114 //*************************************************************************************************
115 
116 } // namespace blaze
117 
118 #endif
Header file for basic type definitions.
Header file for the SizeT class template.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Compile time integral constant wrapper for size_t.The SizeT class template represents an integral wra...
Definition: SizeT.h:71
Compile time evaluation of the number of rows of a matrix.The Rows type trait evaluates the number of...
Definition: Rows.h:76