std::chrono...alues::zero(3)
π NAME π
okay so bestie, welcome to std::chrono...alues::zero(3) from the C++ Standard Libary manual. The NAME line is std::chrono::duration_values::zero - std::chrono::duration_values::zero β yes, twice, because it's the main character. This page is all about the zero static member of std::chrono::duration_values, and its whole personality is returning a zero-length representation. π
β¨ Synopsis β¨
static constexpr Rep zero(); (since C++11)
(until C++20)
static constexpr Rep zero() noexcept; (since C++20)
Returns a zero-length representation. That's the whole assignment, no cap. The first form has the (since C++11) and (until C++20) tags; the second one got the noexcept glow-up with (since C++20). β¨
πΈ Parameters πΈ
(none) β literally none. Not a single parameter. The vibe check came back empty and we're obsessed. π
π Return value π
Rep(0) β that's it, that's the return value. A zero-length representation, served fresh. periodt. π
π¦ See also π¦
zeroβ returns the special duration value zero;[static](public static member function ofstd::chrono::duration<Rep,Period>)minβ returns the smallest possible representation;[static](public static member function)maxβ returns the largest possible representation;[static](public static member function)
mwah π β this std::chrono...alues::zero(3) page came from http://cppreference.com, dated 2024.06.10. stay iconic, bestie π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms