std::chrono::month_day - cppreference.com (original) (raw)
std::chrono::month_day
| Member functions |
|---|
| month_day::month_day |
| month_day::monthmonth_day::day |
| month_day::ok |
| Nonmember functions |
| operator==operator<=> |
| operator<< |
| from_stream |
| Helper classes |
| formatterstd::chrono::month\_day |
| hashstd::chrono::month\_day(C++26) |
| Defined in header | | | | ----------------------------------------------------------------------- | | ------------- | | class month_day; | | (since C++20) |
The class month_day represents a specific day of a specific month, of some yet to be specified year.
month_day is a TriviallyCopyable StandardLayoutType.
[edit] Member functions
| (constructor) | constructs a month_day (public member function) [edit] |
|---|---|
| monthday | retrieve the stored month and day values (public member function) [edit] |
| ok | checks if the month_day is valid (public member function) [edit] |
[edit] Nonmember functions
| operator==operator<=>(C++20) | compares two month_day values (function) [edit] |
|---|---|
| operator<<(C++20) | outputs a month_day into a stream (function template) [edit] |
| from_stream(C++20) | parses a month_day from a stream according to the provided format (function template) [edit] |
[edit] Helper classes
| std::formatterstd::chrono::month\_day(C++20) | formatting support for month_day (class template specialization) [edit] |
|---|---|
| std::hashstd::chrono::month\_day(C++26) | hash support for std::chrono::month_day (class template specialization) |