tmp/tmpd2l3rbg_/{from.md → to.md}
RENAMED
|
@@ -10,22 +10,22 @@ template<class Rep>
|
|
| 10 |
};
|
| 11 |
```
|
| 12 |
|
| 13 |
The `duration` template uses the `duration_values` trait to construct
|
| 14 |
special values of the duration’s representation (`Rep`). This is done
|
| 15 |
-
because the representation
|
| 16 |
requires some other implementation to return these special values. In
|
| 17 |
that case, the author of that class type should specialize
|
| 18 |
`duration_values` to return the indicated values.
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
static constexpr Rep zero() noexcept;
|
| 22 |
```
|
| 23 |
|
| 24 |
*Returns:* `Rep(0)`.
|
| 25 |
|
| 26 |
-
[*Note 1*: `Rep(0)` is specified instead of `Rep()` because `Rep()`
|
| 27 |
have some other meaning, such as an uninitialized value. — *end note*]
|
| 28 |
|
| 29 |
*Remarks:* The value returned shall be the additive identity.
|
| 30 |
|
| 31 |
``` cpp
|
|
|
|
| 10 |
};
|
| 11 |
```
|
| 12 |
|
| 13 |
The `duration` template uses the `duration_values` trait to construct
|
| 14 |
special values of the duration’s representation (`Rep`). This is done
|
| 15 |
+
because the representation can be a class type with behavior that
|
| 16 |
requires some other implementation to return these special values. In
|
| 17 |
that case, the author of that class type should specialize
|
| 18 |
`duration_values` to return the indicated values.
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
static constexpr Rep zero() noexcept;
|
| 22 |
```
|
| 23 |
|
| 24 |
*Returns:* `Rep(0)`.
|
| 25 |
|
| 26 |
+
[*Note 1*: `Rep(0)` is specified instead of `Rep()` because `Rep()` can
|
| 27 |
have some other meaning, such as an uninitialized value. — *end note*]
|
| 28 |
|
| 29 |
*Remarks:* The value returned shall be the additive identity.
|
| 30 |
|
| 31 |
``` cpp
|