std::chrono::day::day(3)
π 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:
day() = default;β the default constructor. It leaves the day value uninitialized. Not cozy, not βready to goβ β just uninitialized. That's the assignment, bestie. πconstexpr explicit day( unsigned d ) noexcept;β ifd <= 255, this constructs adayobject holding the day valued. 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
- 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