std::chrono::month::month(3)

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

hey bestie πŸ’– welcome to std::chrono::month::month(3) β€” a page straight out of the C++ Standard Libary (yes, that’s exactly how it’s spelled here 😭, no cap). it’s giving tiny constructor page with main character energy ✨

πŸŽ€ NAME πŸŽ€

std::chrono::month::month - std::chrono::month::month

literally the name section said what it said πŸ’…


✨ Synopsis ✨

okay so the synopsis is this iconic little duo 🫢

          month() = default;                               (1) (since C++20)
          constexpr explicit month( unsigned m ) noexcept; (2) (since C++20)

Constructs a month object. periodt 🌸

  1. Constructor (1), month() = default; β€” since C++20: the default constructor leaves the month value uninitialized πŸ’€ like, no month setup, no vibe check, just uninitialized. πŸ™ˆ
  2. Constructor (2), constexpr explicit month( unsigned m ) noexcept; β€” since C++20: if m <= 255, constructs a month object holding the month value m. Otherwise the value held is unspecified. 😭 that’s the whole rule, bestie.

source/version + date tea β˜•: this page comes from http://cppreference.com, dated 2024.06.10 β€” mwah πŸ’‹

πŸ“¦ where this page comes from