Defined in header <chrono> | ||||
---|---|---|---|---|
| (since C++17) |
Returns the smallest duration t
representable in ToDuration
that is greater or equal to d
.
The function does not participate in the overload resolution unless ToDuration
is an instance of std::chrono::duration
.
Parameters
d | - | duration to convert |
Return value
d
rounded up to a duration of type ToDuration
.
Possible implementation
|
Example
See also
converts a duration to another, with a different tick interval (function template) | |
(C++17) | converts a duration to another, rounding down (function template) |
(C++17) | converts a duration to another, rounding to nearest, ties to even (function template) |
(C++17) | converts a time_point to another, rounding up (function template) |
nearest integer not less than the given value (function) |
Please login to continue.