public static member function


static constexpr Rep max();
Maximum value
Returns the maximum tick count value.

duration_values is a traits class. By default, this static member function returns numeric_limits<Rep>::max(), where Rep is the first template parameter (the type used by a duration for its internal tick count).

This function is called by duration::max to create a duration value.

A specific type of tick count can specialize this template to provide a different value.



Return value

The value of the maximum tick count.
Rep is the first class template parameter, which is an arithmetic type (or a class emulating an arithmetic type).

See also