Difference between revisions of "cpp/chrono/month weekday"
From cppreference.com
(→Member functions: +) |
(fix ddcl) |
||
(8 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
− | {{cpp/chrono/title| | + | {{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 {{ | + | {{tt|month_weekday}} is a {{named req|TriviallyCopyable}} {{named req|StandardLayoutType}}. |
− | === Member functions === | + | ===Member functions=== |
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | | + | {{dsc inc|cpp/chrono/month_weekday/dsc constructor}} |
− | {{dsc inc | | + | {{dsc inc|cpp/chrono/month_weekday/dsc accessors}} |
− | {{dsc inc | | + | {{dsc inc|cpp/chrono/month_weekday/dsc ok}} |
{{dsc end}} | {{dsc end}} | ||
− | === Nonmember functions === | + | ===Nonmember functions=== |
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | | + | {{dsc inc|cpp/chrono/month_weekday/dsc operator cmp}} |
− | {{dsc inc | | + | {{dsc inc|cpp/chrono/month_weekday/dsc operator ltlt}} |
{{dsc end}} | {{dsc end}} | ||
+ | |||
+ | ===Helper classes=== | ||
+ | {{dsc begin}} | ||
+ | {{dsc inc|cpp/chrono/dsc formatter|month_weekday}} | ||
+ | {{dsc hash|cpp/chrono/month_weekday|nested=true|notes={{mark c++26}}}} | ||
+ | {{dsc end}} | ||
+ | |||
+ | {{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) |