tmp/tmpoecoet3e/{from.md → to.md}
RENAMED
|
@@ -1,17 +1,16 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class Rep1, class Period1, class Rep2, class Period2>
|
| 5 |
struct common_type<chrono::duration<Rep1, Period1>, chrono::duration<Rep2, Period2>> {
|
| 6 |
using type = chrono::duration<common_type_t<Rep1, Rep2>, see below>;
|
| 7 |
};
|
| 8 |
```
|
| 9 |
|
| 10 |
The `period` of the `duration` indicated by this specialization of
|
| 11 |
-
`common_type`
|
| 12 |
-
`Period2`.
|
| 13 |
|
| 14 |
[*Note 1*: This can be computed by forming a ratio of the greatest
|
| 15 |
common divisor of `Period1::num` and `Period2::num` and the least common
|
| 16 |
multiple of `Period1::den` and `Period2::den`. — *end note*]
|
| 17 |
|
|
|
|
| 1 |
+
### Specializations of `common_type` <a id="time.traits.specializations">[[time.traits.specializations]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class Rep1, class Period1, class Rep2, class Period2>
|
| 5 |
struct common_type<chrono::duration<Rep1, Period1>, chrono::duration<Rep2, Period2>> {
|
| 6 |
using type = chrono::duration<common_type_t<Rep1, Rep2>, see below>;
|
| 7 |
};
|
| 8 |
```
|
| 9 |
|
| 10 |
The `period` of the `duration` indicated by this specialization of
|
| 11 |
+
`common_type` is the greatest common divisor of `Period1` and `Period2`.
|
|
|
|
| 12 |
|
| 13 |
[*Note 1*: This can be computed by forming a ratio of the greatest
|
| 14 |
common divisor of `Period1::num` and `Period2::num` and the least common
|
| 15 |
multiple of `Period1::den` and `Period2::den`. — *end note*]
|
| 16 |
|