std::chrono...weekday_last(3)

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

πŸ’– NAME πŸ’–

std::chrono::month_weekday_last β€” std::chrono::month_weekday_last.

hiii bestie! πŸ’… This is the std::chrono...weekday_last(3) page from the C++ Standard Libary manual. Yes, that spelling is the manual’s, not a typo from me.

✨ Synopsis ✨

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

Okay so month_weekday_last represents the last weekday of a specific month β€” of some yet to be specified year. The year is giving mystery, not commitment. πŸ‘€

And month_weekday_last is a TriviallyCopyable StandardLayoutType. Iconic. 🫢

πŸŽ€ Member functions πŸŽ€

  • constructor β€” constructs a month_weekday_last (public member function).
  • month β€” retrieves the stored month and weekday_last values (public member function).
  • weekday_last β€” public member function.
  • ok β€” checks whether the contained month and weekday_last are valid (public member function).

🌈 Nonmember functions 🌈

  • operator== β€” compares two month_weekday_last values (C++20) (function).
  • operator<< β€” outputs a month_weekday_last into a stream (C++20) (function template).

πŸ¦‹ Helper classes πŸ¦‹

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

okay that’s the whole vibe. Sign-off time: source/version http://cppreference.com, dated 2024.06.10. Go forth and represent the last weekday of a month, bestie πŸ’œβœ¨

πŸ“¦ where this page comes from