std::chrono::weekday_last(3)

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

πŸ’… std::chrono::weekday_last πŸ’…

okay bestie, this is the std::chrono::weekday_last(3) page from the C++ Standard Libary manual. We're talking about the class itself, and yes, it's literally called std::chrono::weekday_last. No cap. πŸŽ€

πŸ’– NAME πŸ’–

std::chrono::weekday_last β€” std::chrono::weekday_last. Yes, that's the whole NAME line, bestie. Iconic. πŸ’…

✨ Synopsis ✨

Here's the vibe check:

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

The class weekday_last represents the last weekday of some month. πŸ—“οΈ

weekday_last is a TriviallyCopyable StandardLayoutType. Slay. ✨

🫢 Member functions

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

🌈 Nonmember functions

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

πŸŽ€ Helper classes

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

made with love from http://cppreference.com, version/date 2024.06.10, for the std::chrono::weekday_last(3) page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from