27
Time library
[time]
27.5
Class template
duration
[time.duration]
27.5.9
Algorithms
[time.duration.alg]
🔗
template
<
class
Rep,
class
Period
>
constexpr
duration
<
Rep, Period
>
abs
(
duration
<
Rep, Period
>
d
)
;
1
#
Constraints:
numeric_limits
<
Rep
>
::
is_signed
is
true
.
2
#
Returns:
If
d
>
=
d
.
zero
(
)
, return
d
, otherwise return
-
d
.