Namespaces
Variants
Views
Actions

std::chrono::duration::zero

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

 
 
 
 
 

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

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

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

Returns a zero-length duration.

If the representation rep of the duration requires some other implementation to return a zero-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>::zero())

See also

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