Namespaces
Variants
Views
Actions

std::chrono::duration::max

From cppreference.com
< cpp‎ | chrono‎ | duration
Revision as of 15:31, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
static constexpr duration max();
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Returns a duration with the largest possible value.

If the representation rep of the duration requires some other implementation to return a maximum-length duration, std::chrono::duration_values can be specialized to return the desired value.

Parameters

(none)

Return value

returns std::chrono::duration(std::chrono::duration_values<rep>::max())

See also

Template:cpp/chrono/duration/dcl list zeroTemplate:cpp/chrono/duration/dcl list min