Namespaces
Variants
Views
Actions

std::chrono::duration_values

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

 
 
 
 
 
std::chrono::duration_values
 

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

<td>
Defined in header <chrono>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
template <class Rep>
struct duration_values;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

The std::chrono::duration_values type defines three common durations:

  • std::chrono::duration_values::zero
  • std::chrono::duration_values::min
  • std::chrono::duration_values::max

The zero, min, and max methods in std::chrono::duration forward their work to these methods.

This type can be specialized if the representation Rep requires a specific implementation to return these duration objects.

Member functions

Template:cpp/chrono/duration values/dcl list zeroTemplate:cpp/chrono/duration values/dcl list minTemplate:cpp/chrono/duration values/dcl list max