tetl 0.1.0
Embedded Template Library
|
The etl::chrono::treat_as_floating_point trait helps determine if a duration can be converted to another duration with a different tick period. More...
#include <treat_as_floating_point.hpp>
Additional Inherited Members | |
![]() | |
using | type |
using | type |
using | value_type |
using | value_type |
![]() | |
constexpr | operator value_type () const noexcept |
constexpr | operator value_type () const noexcept |
constexpr auto | operator() () const noexcept -> value_type |
constexpr auto | operator() () const noexcept -> value_type |
![]() | |
static constexpr bool | value |
static constexpr bool | value |
The etl::chrono::treat_as_floating_point trait helps determine if a duration can be converted to another duration with a different tick period.
Implicit conversions between two durations normally depends on the tick period of the durations. However, implicit conversions can happen regardless of tick period if etl::chrono::treat_as_floating_point<Rep>::value == true.