IsDouble.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_UTIL_TYPETRAITS_ISDOUBLE_H_
36 #define _BLAZE_UTIL_TYPETRAITS_ISDOUBLE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/FalseType.h>
44 #include <blaze/util/TrueType.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
74 template< typename T >
75 struct IsDouble
76  : public FalseType
77 {};
78 //*************************************************************************************************
79 
80 
81 //*************************************************************************************************
83 template<>
85 struct IsDouble<double>
86  : public TrueType
87 {};
89 //*************************************************************************************************
90 
91 
92 //*************************************************************************************************
94 template<>
96 struct IsDouble<const double>
97  : public TrueType
98 {};
100 //*************************************************************************************************
101 
102 
103 //*************************************************************************************************
105 template<>
107 struct IsDouble<volatile double>
108  : public TrueType
109 {};
111 //*************************************************************************************************
112 
113 
114 //*************************************************************************************************
116 template<>
118 struct IsDouble<const volatile double>
119  : public TrueType
120 {};
122 //*************************************************************************************************
123 
124 } // namespace blaze
125 
126 #endif
Header file for the FalseType type/value trait base class.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Compile time check for double precision floating point types.This type trait tests whether or not the...
Definition: IsDouble.h:75
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the TrueType type/value trait base class.