std::chrono...nth_day_last(3)

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

🌸 NAME 🌸

std::chrono::month_day_last β€” literally std::chrono::month_day_last - std::chrono::month_day_last. Bestie, the NAME section is serving self-referential icon behavior, and we respect it. This is the std::chrono...nth_day_last(3) page from the C++ Standard Libary manual (yes, Libary β€” the header said it, not me πŸ’€).

✨ Synopsis ✨

Defined in header <chrono>
class month_day_last;       (since C++20)

Okay so month_day_last is a class that represents the last day of a specific month, of some yet to be specified year. That’s the whole vibe: month locked in, year still a mystery πŸ‘€

No cap, month_day_last is a TriviallyCopyable StandardLayoutType. Periodt.

πŸŽ€ Member functions πŸŽ€

  • constructor β€” constructs a month_day_last (public member function)
  • month β€” accesses the stored month (public member function)
  • ok β€” checks if the stored month is valid (public member function)

πŸ”₯ Nonmember functions πŸ”₯

  • operator== β€” compares two month_day_last values (function)
  • operator<=> β€” function, tagged (C++20)
  • operator<< β€” outputs a month_day_last into a stream, tagged (C++20) (function template)

πŸ¦‹ Helper classes πŸ¦‹

  • std::formatter<std::chrono::month_day_last> β€” formatting support for month_day_last, tagged (C++20) (class template specialization)
  • std::hash<std::chrono::month_day_last> β€” hash support for std::chrono::month_day_last, tagged (C++26) (class template specialization)

okay bye bestie 🫢 this page is signed off with source http://cppreference.com, date/version 2024.06.10, and manual std::chrono...nth_day_last(3) β€” slay, documented, done. πŸ’–

πŸ“¦ where this page comes from