23 General utilities library [utilities]
template <class ToDuration, class Clock, class Duration>
constexpr time_point<Clock, ToDuration>
time_point_cast(const time_point<Clock, Duration>& t);
Remarks: This function shall not participate in overload resolution
unless
ToDuration is a specialization of
duration. Returns:
time_point<Clock, ToDuration>(duration_cast<ToDuration>(t.time_since_epoch()))
template <class ToDuration, class Clock, class Duration>
constexpr time_point<Clock, ToDuration>
floor(const time_point<Clock, Duration>& tp);
Remarks: This function shall not participate in overload resolution
unless
ToDuration is a specialization of
duration. Returns: time_point<Clock, ToDuration>(floor<ToDuration>(tp.time_since_epoch())). template <class ToDuration, class Clock, class Duration>
constexpr time_point<Clock, ToDuration>
ceil(const time_point<Clock, Duration>& tp);
Remarks: This function shall not participate in overload resolution
unless
ToDuration is a specialization of
duration. Returns: time_point<Clock, ToDuration>(ceil<ToDuration>(tp.time_since_epoch())). template <class ToDuration, class Clock, class Duration>
constexpr time_point<Clock, ToDuration>
round(const time_point<Clock, Duration>& tp);
Remarks: This function shall not participate in overload resolution
unless
ToDuration is a specialization of
duration, and
treat_as_floating_point_v<typename ToDuration::rep> is
false. Returns: time_point<Clock, ToDuration>(round<ToDuration>(tp.time_since_epoch())).