From Jason Turner

[ratio.syn]

Diff to HTML by rtfpessoa

tmp/tmphfunlxoe/{from.md → to.md} RENAMED
@@ -1,8 +1,9 @@
1
  ### Header `<ratio>` synopsis <a id="ratio.syn">[[ratio.syn]]</a>
2
 
3
  ``` cpp
 
4
  namespace std {
5
  // [ratio.ratio], class template ratio
6
  template<intmax_t N, intmax_t D = 1> class ratio;
7
 
8
  // [ratio.arithmetic], ratio arithmetic
@@ -18,21 +19,21 @@ namespace std {
18
  template<class R1, class R2> struct ratio_less_equal;
19
  template<class R1, class R2> struct ratio_greater;
20
  template<class R1, class R2> struct ratio_greater_equal;
21
 
22
  template<class R1, class R2>
23
- inline constexpr bool ratio_equal_v = ratio_equal<R1, R2>::value;
24
  template<class R1, class R2>
25
- inline constexpr bool ratio_not_equal_v = ratio_not_equal<R1, R2>::value;
26
  template<class R1, class R2>
27
- inline constexpr bool ratio_less_v = ratio_less<R1, R2>::value;
28
  template<class R1, class R2>
29
- inline constexpr bool ratio_less_equal_v = ratio_less_equal<R1, R2>::value;
30
  template<class R1, class R2>
31
- inline constexpr bool ratio_greater_v = ratio_greater<R1, R2>::value;
32
  template<class R1, class R2>
33
- inline constexpr bool ratio_greater_equal_v = ratio_greater_equal<R1, R2>::value;
34
 
35
  // [ratio.si], convenience SI typedefs
36
  using yocto = ratio<1, 1'000'000'000'000'000'000'000'000>; // see below
37
  using zepto = ratio<1, 1'000'000'000'000'000'000'000>; // see below
38
  using atto = ratio<1, 1'000'000'000'000'000'000>;
 
1
  ### Header `<ratio>` synopsis <a id="ratio.syn">[[ratio.syn]]</a>
2
 
3
  ``` cpp
4
+ // all freestanding
5
  namespace std {
6
  // [ratio.ratio], class template ratio
7
  template<intmax_t N, intmax_t D = 1> class ratio;
8
 
9
  // [ratio.arithmetic], ratio arithmetic
 
19
  template<class R1, class R2> struct ratio_less_equal;
20
  template<class R1, class R2> struct ratio_greater;
21
  template<class R1, class R2> struct ratio_greater_equal;
22
 
23
  template<class R1, class R2>
24
+ constexpr bool ratio_equal_v = ratio_equal<R1, R2>::value;
25
  template<class R1, class R2>
26
+ constexpr bool ratio_not_equal_v = ratio_not_equal<R1, R2>::value;
27
  template<class R1, class R2>
28
+ constexpr bool ratio_less_v = ratio_less<R1, R2>::value;
29
  template<class R1, class R2>
30
+ constexpr bool ratio_less_equal_v = ratio_less_equal<R1, R2>::value;
31
  template<class R1, class R2>
32
+ constexpr bool ratio_greater_v = ratio_greater<R1, R2>::value;
33
  template<class R1, class R2>
34
+ constexpr bool ratio_greater_equal_v = ratio_greater_equal<R1, R2>::value;
35
 
36
  // [ratio.si], convenience SI typedefs
37
  using yocto = ratio<1, 1'000'000'000'000'000'000'000'000>; // see below
38
  using zepto = ratio<1, 1'000'000'000'000'000'000'000>; // see below
39
  using atto = ratio<1, 1'000'000'000'000'000'000>;