tmp/tmp3bjftxhp/{from.md → to.md}
RENAMED
|
@@ -134,12 +134,12 @@ template<class Duration>
|
|
| 134 |
-> decltype(SourceClock::to_sys(t));
|
| 135 |
```
|
| 136 |
|
| 137 |
*Constraints:* `SourceClock::to_sys(t)` is well-formed.
|
| 138 |
|
| 139 |
-
*Mandates:* `SourceClock::to_sys(t)` returns a `sys_time<
|
| 140 |
-
|
| 141 |
|
| 142 |
*Returns:* `SourceClock::to_sys(t)`.
|
| 143 |
|
| 144 |
``` cpp
|
| 145 |
template<class DestClock>
|
|
@@ -157,12 +157,12 @@ template<class Duration>
|
|
| 157 |
```
|
| 158 |
|
| 159 |
*Constraints:* `DestClock::from_sys(t)` is well-formed.
|
| 160 |
|
| 161 |
*Mandates:* `DestClock::from_sys(t)` returns a
|
| 162 |
-
`time_point<DestClock,
|
| 163 |
-
|
| 164 |
|
| 165 |
*Returns:* `DestClock::from_sys(t)`.
|
| 166 |
|
| 167 |
#### Conversions between `utc_clock` and other clocks <a id="time.clock.cast.utc">[[time.clock.cast.utc]]</a>
|
| 168 |
|
|
@@ -181,12 +181,12 @@ template<class Duration>
|
|
| 181 |
-> decltype(SourceClock::to_utc(t));
|
| 182 |
```
|
| 183 |
|
| 184 |
*Constraints:* `SourceClock::to_utc(t)` is well-formed.
|
| 185 |
|
| 186 |
-
*Mandates:* `SourceClock::to_utc(t)` returns a `utc_time<
|
| 187 |
-
|
| 188 |
|
| 189 |
*Returns:* `SourceClock::to_utc(t)`.
|
| 190 |
|
| 191 |
``` cpp
|
| 192 |
template<class DestClock>
|
|
@@ -204,12 +204,12 @@ template<class Duration>
|
|
| 204 |
```
|
| 205 |
|
| 206 |
*Constraints:* `DestClock::from_utc(t)` is well-formed.
|
| 207 |
|
| 208 |
*Mandates:* `DestClock::from_utc(t)` returns a
|
| 209 |
-
`time_point<DestClock,
|
| 210 |
-
|
| 211 |
|
| 212 |
*Returns:* `DestClock::from_utc(t)`.
|
| 213 |
|
| 214 |
#### Function template `clock_cast` <a id="time.clock.cast.fn">[[time.clock.cast.fn]]</a>
|
| 215 |
|
|
|
|
| 134 |
-> decltype(SourceClock::to_sys(t));
|
| 135 |
```
|
| 136 |
|
| 137 |
*Constraints:* `SourceClock::to_sys(t)` is well-formed.
|
| 138 |
|
| 139 |
+
*Mandates:* `SourceClock::to_sys(t)` returns a `sys_time<Duration2>` for
|
| 140 |
+
some type `Duration2` [[time.point.general]].
|
| 141 |
|
| 142 |
*Returns:* `SourceClock::to_sys(t)`.
|
| 143 |
|
| 144 |
``` cpp
|
| 145 |
template<class DestClock>
|
|
|
|
| 157 |
```
|
| 158 |
|
| 159 |
*Constraints:* `DestClock::from_sys(t)` is well-formed.
|
| 160 |
|
| 161 |
*Mandates:* `DestClock::from_sys(t)` returns a
|
| 162 |
+
`time_point<DestClock, Duration2>` for some type `Duration2`
|
| 163 |
+
[[time.point.general]].
|
| 164 |
|
| 165 |
*Returns:* `DestClock::from_sys(t)`.
|
| 166 |
|
| 167 |
#### Conversions between `utc_clock` and other clocks <a id="time.clock.cast.utc">[[time.clock.cast.utc]]</a>
|
| 168 |
|
|
|
|
| 181 |
-> decltype(SourceClock::to_utc(t));
|
| 182 |
```
|
| 183 |
|
| 184 |
*Constraints:* `SourceClock::to_utc(t)` is well-formed.
|
| 185 |
|
| 186 |
+
*Mandates:* `SourceClock::to_utc(t)` returns a `utc_time<Duration2>` for
|
| 187 |
+
some type `Duration2` [[time.point.general]].
|
| 188 |
|
| 189 |
*Returns:* `SourceClock::to_utc(t)`.
|
| 190 |
|
| 191 |
``` cpp
|
| 192 |
template<class DestClock>
|
|
|
|
| 204 |
```
|
| 205 |
|
| 206 |
*Constraints:* `DestClock::from_utc(t)` is well-formed.
|
| 207 |
|
| 208 |
*Mandates:* `DestClock::from_utc(t)` returns a
|
| 209 |
+
`time_point<DestClock, Duration2>` for some type `Duration2`
|
| 210 |
+
[[time.point.general]].
|
| 211 |
|
| 212 |
*Returns:* `DestClock::from_utc(t)`.
|
| 213 |
|
| 214 |
#### Function template `clock_cast` <a id="time.clock.cast.fn">[[time.clock.cast.fn]]</a>
|
| 215 |
|