Size.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_SIZE_H_
36 #define _BLAZE_MATH_TYPETRAITS_SIZE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
44 #include <blaze/util/Types.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
79 template< typename T, size_t N >
80 struct Size
81  : public PtrdiffT<-1L>
82 {};
83 //*************************************************************************************************
84 
85 
86 //*************************************************************************************************
91 template< typename T, size_t N >
92 struct Size< const T, N >
93  : public Size<T,N>
94 {};
96 //*************************************************************************************************
97 
98 
99 //*************************************************************************************************
104 template< typename T, size_t N >
105 struct Size< volatile T, N >
106  : public Size<T,N>
107 {};
109 //*************************************************************************************************
110 
111 
112 //*************************************************************************************************
117 template< typename T, size_t N >
118 struct Size< const volatile T, N >
119  : public Size<T,N>
120 {};
122 //*************************************************************************************************
123 
124 } // namespace blaze
125 
126 #endif
Header file for basic type definitions.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the PtrdiffT class template.
Compile time integral constant wrapper for ptrdiff_t.The PtrdiffT class template represents an integr...
Definition: PtrdiffT.h:72
Compile time evaluation of the size of vectors and matrices.The Size type trait evaluates the size of...
Definition: Size.h:80