tmp/tmp39c8z8uz/{from.md → to.md}
RENAMED
|
@@ -1,28 +1,25 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr time_point();
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:*
|
| 8 |
-
|
| 9 |
-
epoch.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
constexpr explicit time_point(const duration& d);
|
| 13 |
```
|
| 14 |
|
| 15 |
-
*Effects:*
|
| 16 |
-
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
template<class Duration2>
|
| 20 |
constexpr time_point(const time_point<clock, Duration2>& t);
|
| 21 |
```
|
| 22 |
|
| 23 |
-
*
|
| 24 |
-
unless `Duration2` is implicitly convertible to `duration`.
|
| 25 |
|
| 26 |
-
*Effects:*
|
| 27 |
-
with `t.time_since_epoch()`.
|
| 28 |
|
|
|
|
| 1 |
+
### Constructors <a id="time.point.cons">[[time.point.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr time_point();
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Initializes `d_` with `duration::zero()`. Such a `time_point`
|
| 8 |
+
object represents the epoch.
|
|
|
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
constexpr explicit time_point(const duration& d);
|
| 12 |
```
|
| 13 |
|
| 14 |
+
*Effects:* Initializes `d_` with `d`. Such a `time_point` object
|
| 15 |
+
represents the epoch `+ d`.
|
| 16 |
|
| 17 |
``` cpp
|
| 18 |
template<class Duration2>
|
| 19 |
constexpr time_point(const time_point<clock, Duration2>& t);
|
| 20 |
```
|
| 21 |
|
| 22 |
+
*Constraints:* `is_convertible_v<Duration2, duration>` is `true`.
|
|
|
|
| 23 |
|
| 24 |
+
*Effects:* Initializes `d_` with `t.time_since_epoch()`.
|
|
|
|
| 25 |
|