17016
17016
template <class R1, class R2> struct ratio_greater;
17017
17017
template <class R1, class R2> struct ratio_greater_equal;
17018
17018
17019
+ template <class R1, class R2>
17020
+ constexpr bool ratio_equal_v = ratio_equal<R1, R2>::value;
17021
+ template <class R1, class R2>
17022
+ constexpr bool ratio_not_equal_v = ratio_not_equal<R1, R2>::value;
17023
+ template <class R1, class R2>
17024
+ constexpr bool ratio_less_v = ratio_less<R1, R2>::value;
17025
+ template <class R1, class R2>
17026
+ constexpr bool ratio_less_equal_v = ratio_less_equal<R1, R2>::value;
17027
+ template <class R1, class R2>
17028
+ constexpr bool ratio_greater_v = ratio_greater<R1, R2>::value;
17029
+ template <class R1, class R2>
17030
+ constexpr bool ratio_greater_equal_v = ratio_greater_equal<R1, R2>::value;
17031
+
17019
17032
// \ref{ratio.si}, convenience SI typedefs
17020
17033
using yocto = ratio<1, 1'000'000'000'000'000'000'000'000>; // see below
17021
17034
using zepto = ratio<1, 1'000'000'000'000'000'000'000>; // see below
17037
17050
using exa = ratio< 1'000'000'000'000'000'000, 1>;
17038
17051
using zetta = ratio< 1'000'000'000'000'000'000'000, 1>; // see below
17039
17052
using yotta = ratio<1'000'000'000'000'000'000'000'000, 1>; // see below
17040
-
17041
- // \ref{ratio.arithmetic}, ratio comparison
17042
- template <class R1, class R2> constexpr bool ratio_equal_v
17043
- = ratio_equal<R1, R2>::value;
17044
- template <class R1, class R2> constexpr bool ratio_not_equal_v
17045
- = ratio_not_equal<R1, R2>::value;
17046
- template <class R1, class R2> constexpr bool ratio_less_v
17047
- = ratio_less<R1, R2>::value;
17048
- template <class R1, class R2> constexpr bool ratio_less_equal_v
17049
- = ratio_less_equal<R1, R2>::value;
17050
- template <class R1, class R2> constexpr bool ratio_greater_v
17051
- = ratio_greater<R1, R2>::value;
17052
- template <class R1, class R2> constexpr bool ratio_greater_equal_v
17053
- = ratio_greater_equal<R1, R2>::value;
17054
17053
}
17055
17054
\end{codeblockdigitsep}
17056
17055
@@ -17161,20 +17160,20 @@
17161
17160
17162
17161
\indexlibrary{\idxcode{ratio_equal}}%
17163
17162
\begin{itemdecl}
17164
- template <class R1, class R2> struct ratio_equal
17165
- : bool_constant<R1::num == R2::num && R1::den == R2::den> { };
17163
+ template <class R1, class R2>
17164
+ struct ratio_equal : bool_constant<R1::num == R2::num && R1::den == R2::den> { };
17166
17165
\end{itemdecl}
17167
17166
17168
17167
\indexlibrary{\idxcode{ratio_not_equal}}%
17169
17168
\begin{itemdecl}
17170
- template <class R1, class R2> struct ratio_not_equal
17171
- : bool_constant<!ratio_equal_v<R1, R2>> { };
17169
+ template <class R1, class R2>
17170
+ struct ratio_not_equal : bool_constant<!ratio_equal_v<R1, R2>> { };
17172
17171
\end{itemdecl}
17173
17172
17174
17173
\indexlibrary{\idxcode{ratio_less}}%
17175
17174
\begin{itemdecl}
17176
- template <class R1, class R2> struct ratio_less
17177
- : bool_constant<@\seebelow@> { };
17175
+ template <class R1, class R2>
17176
+ struct ratio_less : bool_constant<@\seebelow@> { };
17178
17177
\end{itemdecl}
17179
17178
17180
17179
\begin{itemdescr}
@@ -17188,20 +17187,20 @@
17188
17187
17189
17188
\indexlibrary{\idxcode{ratio_less_equal}}%
17190
17189
\begin{itemdecl}
17191
- template <class R1, class R2> struct ratio_less_equal
17192
- : bool_constant<!ratio_less_v<R2, R1>> { };
17190
+ template <class R1, class R2>
17191
+ struct ratio_less_equal : bool_constant<!ratio_less_v<R2, R1>> { };
17193
17192
\end{itemdecl}
17194
17193
17195
17194
\indexlibrary{\idxcode{ratio_greater}}%
17196
17195
\begin{itemdecl}
17197
- template <class R1, class R2> struct ratio_greater
17198
- : bool_constant<ratio_less_v<R2, R1>> { };
17196
+ template <class R1, class R2>
17197
+ struct ratio_greater : bool_constant<ratio_less_v<R2, R1>> { };
17199
17198
\end{itemdecl}
17200
17199
17201
17200
\indexlibrary{\idxcode{ratio_greater_equal}}%
17202
17201
\begin{itemdecl}
17203
- template <class R1, class R2> struct ratio_greater_equal
17204
- : bool_constant<!ratio_less_v<R1, R2>> { };
17202
+ template <class R1, class R2>
17203
+ struct ratio_greater_equal : bool_constant<!ratio_less_v<R1, R2>> { };
17205
17204
\end{itemdecl}
17206
17205
17207
17206
\rSec2[ratio.si]{SI types for \tcode{ratio}}
0 commit comments