8#ifndef INCLUDED_BSLSTL_RATIO
9#define INCLUDED_BSLSTL_RATIO
56#include <bslscm_version.h>
60#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
64#ifdef BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY
72 using std::ratio_subtract;
73 using std::ratio_multiply;
74 using std::ratio_divide;
75 using std::ratio_equal;
76 using std::ratio_not_equal;
77 using std::ratio_less;
78 using std::ratio_less_equal;
79 using std::ratio_greater;
80 using std::ratio_greater_equal;
97#ifdef BSL_RATIO_SUPPORTS_EXTENDED_SI_TYPEDEFS
104#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_BASELINE_LIBRARY
105 using std::ratio_equal_v;
106 using std::ratio_not_equal_v;
107 using std::ratio_less_v;
108 using std::ratio_less_equal_v;
109 using std::ratio_greater_v;
110 using std::ratio_greater_equal_v;
111#elif defined BSLS_LIBRARYFEATURES_HAS_CPP14_BASELINE_LIBRARY
112 template <
class R1,
class R2>
constexpr bool ratio_equal_v
113 = ratio_equal<R1, R2>::value;
117 template <
class R1,
class R2>
constexpr bool ratio_not_equal_v
118 = ratio_not_equal<R1, R2>::value;
122 template <
class R1,
class R2>
constexpr bool ratio_less_v
123 = ratio_less<R1, R2>::value;
127 template <
class R1,
class R2>
constexpr bool ratio_less_equal_v
128 = ratio_less_equal<R1, R2>::value;
132 template <
class R1,
class R2>
constexpr bool ratio_greater_v
133 = ratio_greater<R1, R2>::value;
137 template <
class R1,
class R2>
constexpr bool ratio_greater_equal_v
138 = ratio_greater_equal<R1, R2>::value;
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bdlat_valuetypefunctions.h:939