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 : public FalseType
76 {};
77 //*************************************************************************************************
78 
79 
80 //*************************************************************************************************
82 template<>
84 struct IsDouble<double> : public TrueType
85 {};
87 //*************************************************************************************************
88 
89 
90 //*************************************************************************************************
92 template<>
94 struct IsDouble<const double> : public TrueType
95 {};
97 //*************************************************************************************************
98 
99 
100 //*************************************************************************************************
102 template<>
104 struct IsDouble<volatile double> : public TrueType
105 {};
107 //*************************************************************************************************
108 
109 
110 //*************************************************************************************************
112 template<>
114 struct IsDouble<const volatile double> : public TrueType
115 {};
117 //*************************************************************************************************
118 
119 } // namespace blaze
120 
121 #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
BoolConstant< true > TrueType
Type traits base class.The TrueType class is used as base class for type traits and value traits that...
Definition: TrueType.h:61
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the TrueType type/value trait base class.