function template · 2 overloads
std::chrono::round
- Header
<chrono>- Draft
- [cmath.syn]
- Scope
std::chrono- cppreference
- <chrono> nearest page
Overloads
- (1)
template<class ToDuration, class Rep, class Period> requires is-duration<ToDuration> && (!treat_as_floating_point_v<typename ToDuration::rep>) constexpr ToDuration round(const duration<Rep, Period>& d); - (2)
template<class ToDuration, class Clock, class Duration> requires is-duration<ToDuration> && (!treat_as_floating_point_v<typename ToDuration::rep>) constexpr time_point<Clock, ToDuration> round(const time_point<Clock, Duration>& tp);