class template
<chrono>

std::chrono::duration_values

template <class Rep> class duration_values;
Duration values
This is a traits class to provide the limits and zero value of the type used to represent the count in a duration object.

All library implementations provide at least a default definition, which is equivalent to:
1
2
3
4
5
template <class Rep> struct duration_values {
  static constexpr Rep zero() { return Rep(0); }
  static constexpr Rep min() { return numeric_limits<Rep>::lowest(); }
  static constexpr Rep max() { return numeric_limits<Rep>::max(); }
}

A specific type of count representation can specialize this template to provide specific values.

Template parameters

Rep
Count representation type.
This is an arithmetic type, or a class emulating an arithmetic type.

Member functions