std::chrono::ceil(std::chrono::time_point) (3) - Linux Manuals
std::chrono::ceil(std::chrono::time_point): std::chrono::ceil(std::chrono::time_point)
NAME
std::chrono::ceil(std::chrono::time_point) - std::chrono::ceil(std::chrono::time_point)
Synopsis
Defined in header <chrono>
template <class ToDuration, class Clock, class Duration> (since C++17)
constexpr time_point<Clock, ToDuration> ceil(const time_point<Clock, Duration>& tp);
Returns the smallest time point t representable in ToDuration that is greater or equal to tp.
The function does not participate in the overload resolution unless ToDuration is an instance of std::chrono::duration.
Parameters
tp - time point to convert
Return value
d rounded up to a the next time point using duration of type ToDuration.
Possible implementation
Example
This section is incomplete
Reason: no example
See also
time_point_cast (function template)
floor(std::chrono::time_point) converts a time_point to another, rounding down
(C++17)
round(std::chrono::time_point) converts a time_point to another, rounding to nearest, ties to even
(C++17)
ceil(std::chrono::duration) converts a duration to another, rounding up
(C++17)
ceil
ceilf
ceill nearest integer not less than the given value
(C++11)
(C++11)