tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
treat_as_floating_point< Rep > Struct Template Reference

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>

Inheritance diagram for treat_as_floating_point< Rep >:
is_floating_point< Rep > integral_constant< bool, B >

Additional Inherited Members

- Public Types inherited from integral_constant< bool, B >
using type
 
using type
 
using value_type
 
using value_type
 
- Public Member Functions inherited from integral_constant< bool, B >
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 Public Attributes inherited from integral_constant< bool, B >
static constexpr bool value
 
static constexpr bool value
 

Detailed Description

template<typename Rep>
struct etl::chrono::treat_as_floating_point< Rep >

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.

Note
etl::chrono::treat_as_floating_point may be specialized for program-defined types.

The documentation for this struct was generated from the following file: