Namespaces
Variants
Actions

std::chrono::duration_values<Rep>::zero

From cppreference.com
 
C++
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
Date and time library
Time point
(C++11)
(C++20)
Duration
(C++11)
Clocks
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time of day
(C++20)(C++20)
(C++20)(C++20)
(C++20)
Calendar
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
chrono I/O
(C++20)

 
std::chrono::duration
Member functions
Non-member functions
(C++17)
(C++17)
(C++17)
(C++17)

Helper classes
 
std::chrono::duration_values
Member functions
duration_values::zero
 
static constexpr Rep zero();
(since C++11)
(until C++20)
static constexpr Rep zero() noexcept;
(since C++20)

Returns a zero-length representation.

[edit] Parameters

(none)

[edit] Return value

Rep(0)

[edit] See also

[static]
returns the special duration value zero
(public static member function of std::chrono::duration<Rep,Period>) [edit]
[static]
returns the smallest possible representation
(public static member function) [edit]
[static]
returns the largest possible representation
(public static member function) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant