std::chrono::day::day(3)

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

πŸ’– NAME

This is the page for std::chrono::day::day(3) β€” the header, the main-character title β€” from the C++ Standard Libary manual. NAME literally reads std::chrono::day::day - std::chrono::day::day. Yes bestie, the name is the name and the name is also the name. It's giving β€œI contain multitudes.” ✨

✨ Synopsis

          day() = default;                               (1) (since C++20)
          constexpr explicit day( unsigned d ) noexcept; (2) (since C++20)

Okay so: Constructs a day object. That's the whole plot. Two constructors, both (since C++20), and they are absolutely not the same vibe:

  1. day() = default; β€” the default constructor. It leaves the day value uninitialized. Not cozy, not β€œready to go” β€” just uninitialized. That's the assignment, bestie. πŸ™ˆ
  2. constexpr explicit day( unsigned d ) noexcept; β€” if d <= 255, this constructs a day object holding the day value d. Otherwise? The value held is unspecified. That's the whole story: unspecified. So don't go trusting it to be cute and predictable. 😭

mwah πŸ’‹ β€” this page came from http://cppreference.com, dated 2024.06.10, and the footer name is std::chrono::day::day(3). Bye bestie! 🫢

πŸ“¦ where this page comes from