From Jason Turner

[time.point.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp39c8z8uz/{from.md → to.md} +7 -10
tmp/tmp39c8z8uz/{from.md → to.md} RENAMED
@@ -1,28 +1,25 @@
1
- #### `time_point` constructors <a id="time.point.cons">[[time.point.cons]]</a>
2
 
3
  ``` cpp
4
  constexpr time_point();
5
  ```
6
 
7
- *Effects:* Constructs an object of type `time_point`, initializing `d_`
8
- with `duration::zero()`. Such a `time_point` object represents the
9
- epoch.
10
 
11
  ``` cpp
12
  constexpr explicit time_point(const duration& d);
13
  ```
14
 
15
- *Effects:* Constructs an object of type `time_point`, initializing `d_`
16
- with `d`. Such a `time_point` object represents the epoch `+ d`.
17
 
18
  ``` cpp
19
  template<class Duration2>
20
  constexpr time_point(const time_point<clock, Duration2>& t);
21
  ```
22
 
23
- *Remarks:* This constructor shall not participate in overload resolution
24
- unless `Duration2` is implicitly convertible to `duration`.
25
 
26
- *Effects:* Constructs an object of type `time_point`, initializing `d_`
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