Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/chrono/month weekday"

From cppreference.com
< cpp‎ | chrono
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}}
{{dcl begin}}
+
{{ddcl|header=chrono|since=c++20|
{{dcl header|chrono}}
+
{{dcl|since=c++20|1=
+
 
class month_weekday;
 
class month_weekday;
 
}}
 
}}
{{dcl end}}
 
  
The class {{tt|month_weekday}} represents the n-th weekday of a specific month, of some yet to be specified year.
+
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 operator_cmp}}
+
{{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/month_weekday/dsc formatter}}
+
{{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

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
 
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) [edit]
retrieves the stored month and weekday_indexed values
(public member function) [edit]
checks whether the contained month and weekday_indexed are valid
(public member function) [edit]

[edit] Nonmember functions

compares two month_weekday values
(function) [edit]
outputs a month_weekday into a stream
(function template) [edit]

[edit] Helper classes

formatting support for month_weekday
(class template specialization) [edit]
hash support for std::chrono::month_weekday
(class template specialization)