From Jason Turner

[time.point.comparisons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp27ku0qkz/{from.md → to.md} +18 -17
tmp/tmp27ku0qkz/{from.md → to.md} RENAMED
@@ -1,50 +1,51 @@
1
- #### `time_point` comparisons <a id="time.point.comparisons">[[time.point.comparisons]]</a>
2
 
3
  ``` cpp
4
  template<class Clock, class Duration1, class Duration2>
5
  constexpr bool operator==(const time_point<Clock, Duration1>& lhs,
6
  const time_point<Clock, Duration2>& rhs);
7
  ```
8
 
9
  *Returns:* `lhs.time_since_epoch() == rhs.time_since_epoch()`.
10
 
11
- ``` cpp
12
- template <class Clock, class Duration1, class Duration2>
13
- constexpr bool operator!=(const time_point<Clock, Duration1>& lhs,
14
- const time_point<Clock, Duration2>& rhs);
15
- ```
16
-
17
- *Returns:* `!(lhs == rhs)`.
18
-
19
  ``` cpp
20
  template<class Clock, class Duration1, class Duration2>
21
  constexpr bool operator<(const time_point<Clock, Duration1>& lhs,
22
  const time_point<Clock, Duration2>& rhs);
23
  ```
24
 
25
  *Returns:* `lhs.time_since_epoch() < rhs.time_since_epoch()`.
26
 
27
- ``` cpp
28
- template <class Clock, class Duration1, class Duration2>
29
- constexpr bool operator<=(const time_point<Clock, Duration1>& lhs,
30
- const time_point<Clock, Duration2>& rhs);
31
- ```
32
-
33
- *Returns:* `!(rhs < lhs)`.
34
-
35
  ``` cpp
36
  template<class Clock, class Duration1, class Duration2>
37
  constexpr bool operator>(const time_point<Clock, Duration1>& lhs,
38
  const time_point<Clock, Duration2>& rhs);
39
  ```
40
 
41
  *Returns:* `rhs < lhs`.
42
 
 
 
 
 
 
 
 
 
43
  ``` cpp
44
  template<class Clock, class Duration1, class Duration2>
45
  constexpr bool operator>=(const time_point<Clock, Duration1>& lhs,
46
  const time_point<Clock, Duration2>& rhs);
47
  ```
48
 
49
  *Returns:* `!(lhs < rhs)`.
50
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Comparisons <a id="time.point.comparisons">[[time.point.comparisons]]</a>
2
 
3
  ``` cpp
4
  template<class Clock, class Duration1, class Duration2>
5
  constexpr bool operator==(const time_point<Clock, Duration1>& lhs,
6
  const time_point<Clock, Duration2>& rhs);
7
  ```
8
 
9
  *Returns:* `lhs.time_since_epoch() == rhs.time_since_epoch()`.
10
 
 
 
 
 
 
 
 
 
11
  ``` cpp
12
  template<class Clock, class Duration1, class Duration2>
13
  constexpr bool operator<(const time_point<Clock, Duration1>& lhs,
14
  const time_point<Clock, Duration2>& rhs);
15
  ```
16
 
17
  *Returns:* `lhs.time_since_epoch() < rhs.time_since_epoch()`.
18
 
 
 
 
 
 
 
 
 
19
  ``` cpp
20
  template<class Clock, class Duration1, class Duration2>
21
  constexpr bool operator>(const time_point<Clock, Duration1>& lhs,
22
  const time_point<Clock, Duration2>& rhs);
23
  ```
24
 
25
  *Returns:* `rhs < lhs`.
26
 
27
+ ``` cpp
28
+ template<class Clock, class Duration1, class Duration2>
29
+ constexpr bool operator<=(const time_point<Clock, Duration1>& lhs,
30
+ const time_point<Clock, Duration2>& rhs);
31
+ ```
32
+
33
+ *Returns:* `!(rhs < lhs)`.
34
+
35
  ``` cpp
36
  template<class Clock, class Duration1, class Duration2>
37
  constexpr bool operator>=(const time_point<Clock, Duration1>& lhs,
38
  const time_point<Clock, Duration2>& rhs);
39
  ```
40
 
41
  *Returns:* `!(lhs < rhs)`.
42
 
43
+ ``` cpp
44
+ template<class Clock, class Duration1,
45
+ three_way_comparable_with<Duration1> Duration2>
46
+ constexpr auto operator<=>(const time_point<Clock, Duration1>& lhs,
47
+ const time_point<Clock, Duration2>& rhs);
48
+ ```
49
+
50
+ *Returns:* `lhs.time_since_epoch() <=> rhs.time_since_epoch()`.
51
+