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

The etl::chrono::duration_values type defines three common durations. More...

#include <duration_values.hpp>

Static Public Member Functions

static constexpr auto max () -> Rep
 Returns the special duration value max.
 
static constexpr auto min () -> Rep
 Returns the smallest possible representation.
 
static constexpr auto zero () -> Rep
 Returns a zero-length representation.
 

Detailed Description

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

The etl::chrono::duration_values type defines three common durations.

The zero, min, and max methods in etl::chrono::duration forward their work to these methods. This type can be specialized if the representation Rep requires a specific implementation to return these duration objects.

Member Function Documentation

◆ max()

template<typename Rep>
constexpr auto max ( ) -> Rep
inlinestaticnodiscardconstexpr

Returns the special duration value max.

◆ min()

template<typename Rep>
constexpr auto min ( ) -> Rep
inlinestaticnodiscardconstexpr

Returns the smallest possible representation.

◆ zero()

template<typename Rep>
constexpr auto zero ( ) -> Rep
inlinestaticnodiscardconstexpr

Returns a zero-length representation.


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