8#ifndef INCLUDED_BSLSTL_RATIO
9#define INCLUDED_BSLSTL_RATIO
54#include <bslscm_version.h>
58#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
62#ifdef BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY
70 using std::ratio_subtract;
71 using std::ratio_multiply;
72 using std::ratio_divide;
73 using std::ratio_equal;
74 using std::ratio_not_equal;
75 using std::ratio_less;
76 using std::ratio_less_equal;
77 using std::ratio_greater;
78 using std::ratio_greater_equal;
95#ifdef BSL_RATIO_SUPPORTS_EXTENDED_SI_TYPEDEFS
102#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_BASELINE_LIBRARY
103 using std::ratio_equal_v;
104 using std::ratio_not_equal_v;
105 using std::ratio_less_v;
106 using std::ratio_less_equal_v;
107 using std::ratio_greater_v;
108 using std::ratio_greater_equal_v;
109#elif defined BSLS_LIBRARYFEATURES_HAS_CPP14_BASELINE_LIBRARY
110 template <
class R1,
class R2>
constexpr bool ratio_equal_v
111 = ratio_equal<R1, R2>::value;
115 template <
class R1,
class R2>
constexpr bool ratio_not_equal_v
116 = ratio_not_equal<R1, R2>::value;
120 template <
class R1,
class R2>
constexpr bool ratio_less_v
121 = ratio_less<R1, R2>::value;
125 template <
class R1,
class R2>
constexpr bool ratio_less_equal_v
126 = ratio_less_equal<R1, R2>::value;
130 template <
class R1,
class R2>
constexpr bool ratio_greater_v
131 = ratio_greater<R1, R2>::value;
135 template <
class R1,
class R2>
constexpr bool ratio_greater_equal_v
136 = ratio_greater_equal<R1, R2>::value;
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlb_printmethods.h:283