Szerkesztés

Megosztás a következőn keresztül:


duration_values structure

Provides specific values for the duration template parameter Rep.

Syntax

template <class Rep>
struct duration_values;

Members

Public Methods

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

Requirements

Header: <chrono>

Namespace: std::chrono

duration_values::max

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

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

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

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

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

<chrono>
Header Files Reference