std::chrono::month_day(3)
β¨ std::chrono::month_day β¨
Okay bestie, this is from the C++ Standard Libary manual (yes, that spelling is in the header β we keep it π
), and the page is std::chrono::month_day(3). Letβs get into it.
π NAME π
std::chrono::month_day β std::chrono::month_day (the name and the description are literally twins, we love a consistent icon π).
πΈ Synopsis πΈ
Defined in header <chrono>
class month_day; (since C++20)
So month_day represents a specific day of a specific month, of some yet to be specified year. TBD year energy, honestly. And month_day is a TriviallyCopyable StandardLayoutType β both, no cap β¨.
π«Ά Member functions π«Ά
constructorβ constructs amonth_day(public member function)month/dayβ retrieve the stored month and day values (public member functions)okβ checks if themonth_dayis valid (public member function)
π« Nonmember functions π«
operator==β compares twomonth_dayvalues (function)operator<=>β (C++20) (function)operator<<β outputs amonth_dayinto a stream (C++20) (function template)from_streamβ parses amonth_dayfrom a stream according to the provided format (C++20) (function template)
π§ Helper classes π§
std::formatter<std::chrono::month_day>β formatting support formonth_day(C++20) (class template specialization)std::hash<std::chrono::month_day>β hash support forstd::chrono::month_day(C++26) (class template specialization)
Source/version/date check, bestie: this came from http://cppreference.com, dated 2024.06.10, and the manual page is std::chrono::month_day(3). Slay, go be the main character of your own month-and-day combo ππ¦
π¦ 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