Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::chrono::treat_as_floating_point< Rep > Class Template Reference

Trait to indicate if a representation type should be treated as floating-point. More...

Inheritance diagram for std::chrono::treat_as_floating_point< Rep >:
Inheritance graph

Additional Inherited Members

- Public Types inherited from std::integral_constant< bool, Value >
using type
 The type of this class.
 
using value_type
 The type of the value.
 
- Public Member Functions inherited from std::integral_constant< bool, Value >
constexpr operator value_type () const noexcept
 Implicit conversion to Type.
 
constexpr operator value_type () const noexcept
 Implicit conversion to Type.
 
constexpr auto operator() () const noexcept -> value_type
 Nullary function call operator.
 
constexpr auto operator() () const noexcept -> value_type
 Nullary function call operator.
 
- Static Public Attributes inherited from std::integral_constant< bool, Value >
static constexpr value_type value
 The constant.
 
static constexpr value_type value
 The constant.
 

Detailed Description

template<typename Rep>
class std::chrono::treat_as_floating_point< Rep >

Trait to indicate if a representation type should be treated as floating-point.

This trait determines whether implicit conversions between duration types are allowed. If the representation type is treated as floating-point, implicit conversions that might lose precision are permitted. Otherwise, such conversions are forbidden.

Template Parameters
RepThe representation type to check
Note
This trait can be specialized by users for custom representation types

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