std::chrono..._values::max(3)

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

πŸ’… std::chrono..._values::max(3) πŸ’…

okay so we're in the C++ Standard Libary manual, section 3, and this page is about the absolute maximum vibe of std::chrono::duration_values::max. no cap, it's giving "largest possible representation" energy. ✨


🌸 NAME 🌸

std::chrono::duration_values::max β€” std::chrono::duration_values::max

literally the same on both sides, iykyk πŸ’–


✨ Synopsis ✨

two overloads, bestie:

          static constexpr Rep max();           (since C++11)
                                                (until C++20)
          static constexpr Rep max() noexcept;  (since C++20)

timeline check πŸ•°οΈ: first form is (since C++11) and (until C++20), second form is (since C++20).

Returns the largest possible representation. slay πŸ’…


πŸŽ€ Parameters πŸŽ€

(none)

literally none, bestie. no arguments, no stress. 🫢


πŸ¦‹ Return value πŸ¦‹

std::numeric_limits<Rep>::max()

that's it. that's the return value. iconic πŸ‘‘


🌈 See also 🌈

  • max β€” returns the special duration value max; [static] (public static member function of std::chrono::duration<Rep,Period>)
  • zero β€” returns a zero-length representation; [static] (public static member function)
  • min β€” returns the smallest possible representation; [static] (public static member function)

this gem is from http://cppreference.com, dated 2024.06.10, and the page is std::chrono..._values::max(3). mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from