From Jason Turner

[time.point.nonmember]

Diff to HTML by rtfpessoa

tmp/tmpdhzfo88a/{from.md → to.md} RENAMED
@@ -1,34 +1,35 @@
1
  #### `time_point` non-member arithmetic <a id="time.point.nonmember">[[time.point.nonmember]]</a>
2
 
3
  ``` cpp
4
  template <class Clock, class Duration1, class Rep2, class Period2>
5
- time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
6
  operator+(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
7
  ```
8
 
9
- *Returns:* `CT(lhs) += rhs`, where `CT` is the type of the return value.
 
10
 
11
  ``` cpp
12
  template <class Rep1, class Period1, class Clock, class Duration2>
13
- time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type>
14
  operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs);
15
  ```
16
 
17
  *Returns:* `rhs + lhs`.
18
 
19
  ``` cpp
20
  template <class Clock, class Duration1, class Rep2, class Period2>
21
- time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
22
  operator-(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
23
  ```
24
 
25
  *Returns:* `lhs + (-rhs)`.
26
 
27
  ``` cpp
28
  template <class Clock, class Duration1, class Duration2>
29
- typename common_type<Duration1, Duration2>::type
30
  operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
31
  ```
32
 
33
  *Returns:* `lhs.time_since_epoch() - rhs.time_since_epoch()`.
34
 
 
1
  #### `time_point` non-member arithmetic <a id="time.point.nonmember">[[time.point.nonmember]]</a>
2
 
3
  ``` cpp
4
  template <class Clock, class Duration1, class Rep2, class Period2>
5
+ constexpr time_point<Clock, common_type_t<Duration1, duration<Rep2, Period2>>>
6
  operator+(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
7
  ```
8
 
9
+ *Returns:* `CT(lhs.time_since_epoch() + rhs)`, where `CT` is the type of
10
+ the return value.
11
 
12
  ``` cpp
13
  template <class Rep1, class Period1, class Clock, class Duration2>
14
+ constexpr time_point<Clock, common_type_t<duration<Rep1, Period1>, Duration2>>
15
  operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs);
16
  ```
17
 
18
  *Returns:* `rhs + lhs`.
19
 
20
  ``` cpp
21
  template <class Clock, class Duration1, class Rep2, class Period2>
22
+ constexpr time_point<Clock, common_type_t<Duration1, duration<Rep2, Period2>>>
23
  operator-(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
24
  ```
25
 
26
  *Returns:* `lhs + (-rhs)`.
27
 
28
  ``` cpp
29
  template <class Clock, class Duration1, class Duration2>
30
+ constexpr common_type_t<Duration1, Duration2>
31
  operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
32
  ```
33
 
34
  *Returns:* `lhs.time_since_epoch() - rhs.time_since_epoch()`.
35