Skip to content

Latest commit

 

History

History
82 lines (52 loc) · 1.9 KB

duration-values-structure.md

File metadata and controls

82 lines (52 loc) · 1.9 KB
description title ms.date f1_keywords dev_langs
Learn more about: duration_values Structure
duration_values Structure
01/05/2022
chrono/std::chrono::duration_values
chrono/std::chrono::duration_values::max
chrono/std::chrono::duration_values::min
chrono/std::chrono::duration_values::zero
C++

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