description | title | ms.date | f1_keywords | dev_langs | |||||
---|---|---|---|---|---|---|---|---|---|
Learn more about: duration_values Structure |
duration_values Structure |
01/05/2022 |
|
|
Provides specific values for the duration
template parameter Rep
.
template <class Rep>
struct duration_values;
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) . |
Header: <chrono>
Namespace: std::chrono
Static method that returns the upper bound for values of type Rep
.
static constexpr Rep max();
In effect, returns numeric_limits<Rep>::max()
.
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 Rep
.
static constexpr Rep min();
In effect, returns numeric_limits<Rep>::lowest()
.
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();
When Rep
is a user-defined type, the return value must represent the additive infinity.