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

A customizable trait to indicate the zero, lowest, and highest values of a given representation type. More...

Static Public Member Functions

static constexpr auto max () noexcept(noexcept(numeric_limits< Rep >::max())) -> Rep
 Get the highest value of the given Rep type, which must compare > zero()
 
static constexpr auto min () noexcept(noexcept(numeric_limits< Rep >::lowest())) -> Rep
 Get the lowest value of the given Rep type, which must compare <= zero()
 
static constexpr auto zero () noexcept(is_nothrow_move_constructible_v< Rep >) -> Rep
 Get the zero value of the given Rep type (formally, its additive identity)
 

Detailed Description

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

A customizable trait to indicate the zero, lowest, and highest values of a given representation type.

Template Parameters
RepThe representation type

Member Function Documentation

◆ max()

template<typename Rep>
static constexpr auto std::chrono::duration_values< Rep >::max ( ) -> Rep
inlinestaticconstexprnoexcept

Get the highest value of the given Rep type, which must compare > zero()

Returns
An instance of the highest value

◆ min()

template<typename Rep>
static constexpr auto std::chrono::duration_values< Rep >::min ( ) -> Rep
inlinestaticconstexprnoexcept

Get the lowest value of the given Rep type, which must compare <= zero()

Returns
An instance of the lowest value

◆ zero()

template<typename Rep>
static constexpr auto std::chrono::duration_values< Rep >::zero ( ) -> Rep
inlinestaticconstexprnoexcept

Get the zero value of the given Rep type (formally, its additive identity)

Returns
An instance of the zero value

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