My Project
is_floating_point.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_IS_FLOATING_POINT_HPP
29 #define BSL_IS_FLOATING_POINT_HPP
30 
31 #include "cstdint.hpp"
32 #include "true_type.hpp"
33 #include "false_type.hpp"
34 
35 namespace bsl
36 {
55  template<typename T>
56  class is_floating_point final : public false_type
57  {};
58 
60 
61  template<>
62  class is_floating_point<float> final : public true_type // PRQA S 2427
63  {};
64 
65  template<>
66  class is_floating_point<float const> final : public true_type // PRQA S 2427
67  {};
68 
69  template<>
70  class is_floating_point<double> final : public true_type // PRQA S 2427
71  {};
72 
73  template<>
74  class is_floating_point<double const> final : public true_type // PRQA S 2427
75  {};
76 
78 }
79 
80 #endif
bool_constant< true > true_type
provides a bool_constant that represents "true"
Definition: true_type.hpp:36
If the provided type is an array type (taking into account const qualifications), provides the member...
Definition: integral_constant.hpp:45
If the provided type is a floating point type (taking into account const qualifications),...
Definition: is_floating_point.hpp:56