From Jason Turner

[time.duration.comparisons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp49_rvbnz/{from.md → to.md} +14 -8
tmp/tmp49_rvbnz/{from.md → to.md} RENAMED
@@ -4,45 +4,51 @@ In the function descriptions that follow, `CT` represents
4
  `common_type_t<A, B>`, where `A` and `B` are the types of the two
5
  arguments to the function.
6
 
7
  ``` cpp
8
  template <class Rep1, class Period1, class Rep2, class Period2>
9
- constexpr bool operator==(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
 
10
  ```
11
 
12
- *Returns:* `CT(lhs).count() == CT(rhs).count()`.
13
 
14
  ``` cpp
15
  template <class Rep1, class Period1, class Rep2, class Period2>
16
- constexpr bool operator!=(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
 
17
  ```
18
 
19
  *Returns:* `!(lhs == rhs)`.
20
 
21
  ``` cpp
22
  template <class Rep1, class Period1, class Rep2, class Period2>
23
- constexpr bool operator<(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
 
24
  ```
25
 
26
- *Returns:* `CT(lhs).count() < CT(rhs).count()`.
27
 
28
  ``` cpp
29
  template <class Rep1, class Period1, class Rep2, class Period2>
30
- constexpr bool operator<=(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
 
31
  ```
32
 
33
  *Returns:* `!(rhs < lhs)`.
34
 
35
  ``` cpp
36
  template <class Rep1, class Period1, class Rep2, class Period2>
37
- constexpr bool operator>(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
 
38
  ```
39
 
40
  *Returns:* `rhs < lhs`.
41
 
42
  ``` cpp
43
  template <class Rep1, class Period1, class Rep2, class Period2>
44
- constexpr bool operator>=(const duration<Rep1, Period1>& lhs, const duration<Rep2, Period2>& rhs);
 
45
  ```
46
 
47
  *Returns:* `!(lhs < rhs)`.
48
 
 
4
  `common_type_t<A, B>`, where `A` and `B` are the types of the two
5
  arguments to the function.
6
 
7
  ``` cpp
8
  template <class Rep1, class Period1, class Rep2, class Period2>
9
+ constexpr bool operator==(const duration<Rep1, Period1>& lhs,
10
+ const duration<Rep2, Period2>& rhs);
11
  ```
12
 
13
+ *Returns:* *`CT`*`(lhs).count() == `*`CT`*`(rhs).count()`.
14
 
15
  ``` cpp
16
  template <class Rep1, class Period1, class Rep2, class Period2>
17
+ constexpr bool operator!=(const duration<Rep1, Period1>& lhs,
18
+ const duration<Rep2, Period2>& rhs);
19
  ```
20
 
21
  *Returns:* `!(lhs == rhs)`.
22
 
23
  ``` cpp
24
  template <class Rep1, class Period1, class Rep2, class Period2>
25
+ constexpr bool operator<(const duration<Rep1, Period1>& lhs,
26
+ const duration<Rep2, Period2>& rhs);
27
  ```
28
 
29
+ *Returns:* *`CT`*`(lhs).count() < `*`CT`*`(rhs).count()`.
30
 
31
  ``` cpp
32
  template <class Rep1, class Period1, class Rep2, class Period2>
33
+ constexpr bool operator<=(const duration<Rep1, Period1>& lhs,
34
+ const duration<Rep2, Period2>& rhs);
35
  ```
36
 
37
  *Returns:* `!(rhs < lhs)`.
38
 
39
  ``` cpp
40
  template <class Rep1, class Period1, class Rep2, class Period2>
41
+ constexpr bool operator>(const duration<Rep1, Period1>& lhs,
42
+ const duration<Rep2, Period2>& rhs);
43
  ```
44
 
45
  *Returns:* `rhs < lhs`.
46
 
47
  ``` cpp
48
  template <class Rep1, class Period1, class Rep2, class Period2>
49
+ constexpr bool operator>=(const duration<Rep1, Period1>& lhs,
50
+ const duration<Rep2, Period2>& rhs);
51
  ```
52
 
53
  *Returns:* `!(lhs < rhs)`.
54