std::chrono...alues::zero(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 of std::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