From Jason Turner

[time.point.nonmember]

Diff to HTML by rtfpessoa

tmp/tmpx3t34nc0/{from.md → to.md} RENAMED
@@ -4,12 +4,12 @@
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);
@@ -21,11 +21,12 @@ template <class Rep1, class Period1, class Clock, class Duration2>
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);
 
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
10
+ type of 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);
 
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:* *`CT`*`(lhs.time_since_epoch() - rhs)`, where *`CT`* is the
27
+ type of the return value.
28
 
29
  ``` cpp
30
  template <class Clock, class Duration1, class Duration2>
31
  constexpr common_type_t<Duration1, Duration2>
32
  operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);