tmp/tmp8f97j1qu/{from.md → to.md}
RENAMED
|
@@ -5,10 +5,50 @@ template <class ToDuration, class Clock, class Duration>
|
|
| 5 |
constexpr time_point<Clock, ToDuration>
|
| 6 |
time_point_cast(const time_point<Clock, Duration>& t);
|
| 7 |
```
|
| 8 |
|
| 9 |
*Remarks:* This function shall not participate in overload resolution
|
| 10 |
-
unless `ToDuration` is
|
| 11 |
|
| 12 |
*Returns:*
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
|
|
|
| 5 |
constexpr time_point<Clock, ToDuration>
|
| 6 |
time_point_cast(const time_point<Clock, Duration>& t);
|
| 7 |
```
|
| 8 |
|
| 9 |
*Remarks:* This function shall not participate in overload resolution
|
| 10 |
+
unless `ToDuration` is a specialization of `duration`.
|
| 11 |
|
| 12 |
*Returns:*
|
| 13 |
+
|
| 14 |
+
``` cpp
|
| 15 |
+
time_point<Clock, ToDuration>(duration_cast<ToDuration>(t.time_since_epoch()))
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
``` cpp
|
| 19 |
+
template <class ToDuration, class Clock, class Duration>
|
| 20 |
+
constexpr time_point<Clock, ToDuration>
|
| 21 |
+
floor(const time_point<Clock, Duration>& tp);
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
*Remarks:* This function shall not participate in overload resolution
|
| 25 |
+
unless `ToDuration` is a specialization of `duration`.
|
| 26 |
+
|
| 27 |
+
*Returns:*
|
| 28 |
+
`time_point<Clock, ToDuration>(floor<ToDuration>(tp.time_since_epoch()))`.
|
| 29 |
+
|
| 30 |
+
``` cpp
|
| 31 |
+
template <class ToDuration, class Clock, class Duration>
|
| 32 |
+
constexpr time_point<Clock, ToDuration>
|
| 33 |
+
ceil(const time_point<Clock, Duration>& tp);
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
*Remarks:* This function shall not participate in overload resolution
|
| 37 |
+
unless `ToDuration` is a specialization of `duration`.
|
| 38 |
+
|
| 39 |
+
*Returns:*
|
| 40 |
+
`time_point<Clock, ToDuration>(ceil<ToDuration>(tp.time_since_epoch()))`.
|
| 41 |
+
|
| 42 |
+
``` cpp
|
| 43 |
+
template <class ToDuration, class Clock, class Duration>
|
| 44 |
+
constexpr time_point<Clock, ToDuration>
|
| 45 |
+
round(const time_point<Clock, Duration>& tp);
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
*Remarks:* This function shall not participate in overload resolution
|
| 49 |
+
unless `ToDuration` is a specialization of `duration`, and
|
| 50 |
+
`treat_as_floating_point_v<typename ToDuration::rep>` is `false`.
|
| 51 |
+
|
| 52 |
+
*Returns:*
|
| 53 |
+
`time_point<Clock, ToDuration>(round<ToDuration>(tp.time_since_epoch()))`.
|
| 54 |
|