duration_values Structure

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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

Provides specific values for the duration template parameter Rep.

template <class Rep>  
struct duration_values;  

Public Methods

NameDescription
duration_values::max MethodStatic. Specifies the upper limit for a value of type Rep.
duration_values::min MethodStatic. Specifies the lower limit for a value of type Rep.
duration_values::zero MethodStatic. Returns Rep(0).

Header: chrono

Namespace: std::chrono

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.

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.

Returns Rep(0).

static constexpr Rep zero();

Remarks

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

Header Files Reference
<chrono>

Show: