tmp/tmpp8lpn7zx/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### `duration` algorithms <a id="time.duration.alg">[[time.duration.alg]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
template <class Rep, class Period>
|
| 5 |
+
constexpr duration<Rep, Period> abs(duration<Rep, Period> d);
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
*Remarks:* This function shall not participate in overload resolution
|
| 9 |
+
unless `numeric_limits<Rep>::is_signed` is `true`.
|
| 10 |
+
|
| 11 |
+
*Returns:* If `d >= d.zero()`, return `d`, otherwise return `-d`.
|
| 12 |
+
|