tetl 0.1.0
Embedded Template Library
|
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 | floor (duration< Rep, Period > const &d) noexcept(is_arithmetic_v< Rep > and is_arithmetic_v< typename To::rep >) -> To |
Returns the greatest duration t representable in ToDuration that is less or equal to d. The function does not participate in the overload resolution unless ToDuration is an instance of etl::chrono::duration. | |
template<typename To, typename Clock, typename Duration> requires (detail::is_duration_v<To>) | |
constexpr auto | floor (time_point< Clock, Duration > const &tp) -> time_point< Clock, To > |