tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
round.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 
namespace  etl::chrono
 

Functions

template<typename To, typename Rep, typename Period>
requires (detail::is_duration_v<To>)
constexpr auto round (duration< Rep, Period > const &dur) noexcept(is_arithmetic_v< Rep > and is_arithmetic_v< typename To::rep >) -> To
 
template<typename To, typename Clock, typename Duration>
requires (detail::is_duration_v<To>)
constexpr auto round (time_point< Clock, Duration > const &tp) -> time_point< Clock, To >