Difference between revisions of "cpp/chrono/month weekday"
From cppreference.com
m (→Helper classes) |
(fix ddcl) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{cpp/chrono/title|month_weekday}} | {{cpp/chrono/title|month_weekday}} | ||
{{cpp/chrono/month_weekday/navbar}} | {{cpp/chrono/month_weekday/navbar}} | ||
− | {{ | + | {{ddcl|header=chrono|since=c++20| |
− | + | ||
− | + | ||
class month_weekday; | class month_weekday; | ||
}} | }} | ||
− | |||
− | The class {{tt|month_weekday}} represents the n | + | The class {{tt|month_weekday}} represents the n{{sup|th}} weekday of a specific month, of some yet to be specified year. |
{{tt|month_weekday}} is a {{named req|TriviallyCopyable}} {{named req|StandardLayoutType}}. | {{tt|month_weekday}} is a {{named req|TriviallyCopyable}} {{named req|StandardLayoutType}}. | ||
− | === Member functions === | + | ===Member functions=== |
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | cpp/chrono/month_weekday/dsc constructor}} | + | {{dsc inc|cpp/chrono/month_weekday/dsc constructor}} |
− | {{dsc inc | cpp/chrono/month_weekday/dsc accessors}} | + | {{dsc inc|cpp/chrono/month_weekday/dsc accessors}} |
− | {{dsc inc | cpp/chrono/month_weekday/dsc ok}} | + | {{dsc inc|cpp/chrono/month_weekday/dsc ok}} |
{{dsc end}} | {{dsc end}} | ||
− | === Nonmember functions === | + | ===Nonmember functions=== |
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | cpp/chrono/month_weekday/dsc | + | {{dsc inc|cpp/chrono/month_weekday/dsc operator cmp}} |
− | {{dsc inc | cpp/chrono/month_weekday/dsc operator ltlt}} | + | {{dsc inc|cpp/chrono/month_weekday/dsc operator ltlt}} |
{{dsc end}} | {{dsc end}} | ||
− | === Helper classes === | + | ===Helper classes=== |
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | cpp/chrono | + | {{dsc inc|cpp/chrono/dsc formatter|month_weekday}} |
+ | {{dsc hash|cpp/chrono/month_weekday|nested=true|notes={{mark c++26}}}} | ||
{{dsc end}} | {{dsc end}} | ||
{{langlinks|es|ja|ru|zh}} | {{langlinks|es|ja|ru|zh}} |
Latest revision as of 11:21, 24 October 2024
Defined in header <chrono>
|
||
class month_weekday; |
(since C++20) | |
The class month_weekday
represents the nth weekday of a specific month, of some yet to be specified year.
month_weekday
is a TriviallyCopyable StandardLayoutType.
[edit] Member functions
constructs a month_weekday (public member function) | |
retrieves the stored month and weekday_indexed values (public member function) | |
checks whether the contained month and weekday_indexed are valid (public member function) |
[edit] Nonmember functions
(C++20) |
compares two month_weekday values (function) |
(C++20) |
outputs a month_weekday into a stream (function template) |
[edit] Helper classes
formatting support for month_weekday (class template specialization) | |
hash support for std::chrono::month_weekday (class template specialization) |