Freigeben über


duration_values Structure

 

The latest version of this topic can be found at duration_values Structure.

Provides specific values for the duration template parameter Rep.

Syntax

template <class Rep>  
struct duration_values;  

Members

Public Methods

Name Description
duration_values::max Method Static. Specifies the upper limit for a value of type Rep.
duration_values::min Method Static. Specifies the lower limit for a value of type Rep.
duration_values::zero Method Static. Returns Rep(0).

Requirements

Header: chrono

Namespace: std::chrono

duration_values::max Method

Static method that returns the upper bound for values of type Ref.

static constexpr Rep max();

Return Value

In effect, returns numeric_limits<Rep>::max().

Remarks

When Rep is a user-defined type, the return value must be greater than duration_values::zero.

duration_values::min Method

Static method that returns the lower bound for values of type Ref.

static constexpr Rep min();

Return Value

In effect, returns numeric_limits<Rep>::lowest().

Remarks

When Rep is a user-defined type, the return value must be less than or equal to duration_values::zero.

duration_values::zero Method

Returns Rep(0).

static constexpr Rep zero();

Remarks

When Rep is a user-defined type, the return value must represent the additive infinity.

See Also

Header Files Reference
<chrono>