tmp/tmp_6vo7w4r/{from.md → to.md}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
-
###
|
| 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:*
|
| 10 |
-
|
| 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,12 +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:*
|
| 27 |
-
|
| 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);
|
|
|
|
| 1 |
+
### 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);
|
|
|
|
| 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 type of
|
| 27 |
+
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);
|