std::chrono::duration::min(3)

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

🌸 NAME 🌸

std::chrono::duration::min - std::chrono::duration::min

okay bestie, you're on the std::chrono::duration::min(3) page in the C++ Standard Libary manual, and the name is literally the name β€” main character energy, no cap. πŸ’…


✨ Synopsis ✨

here's the signature glow-up:

static constexpr duration min();           (until C++20)
static constexpr duration min() noexcept;  (since C++20)

This one returns a duration with the lowest possible value. like, the absolute floor of what it can be β€” not dramatic, just facts. πŸ’–

If the representation rep of the duration requires some other implementation to return a minimum-length duration, std::chrono::duration_values can be specialized to return the desired value. iykyk β€” that's the customization hook for when the default minimum isn't serving what you need.

πŸŽ€ Parameters πŸŽ€

(none)

literally none. she takes no parameters, she's low-maintenance like that. 🫢

πŸ”₯ Return value πŸ”₯

duration(std::chrono::duration_values<rep>::min())

that's the whole return vibe β€” a duration built from std::chrono::duration_values<rep>::min(). no extra sprinkles, no surprises. ✨

πŸ‘‘ See also πŸ‘‘

  • zero β€” returns the special duration value zero. [static] (public static member function)
  • max β€” returns the special duration value max. [static] (public static member function)

mwah πŸ’‹ this page is from http://cppreference.com, dated 2024.06.10, for std::chrono::duration::min(3) β€” go be iconic with your durations, bestie. 🌈

πŸ“¦ where this page comes from