# std::chrono::weekday_indexed

From cppreference.com
< cpp‎ | chrono

Defined in header `<chrono>` |  |
class weekday_indexed; |  | (since C++20)

The class `weekday_indexed` combines a `weekday`, representing a day of the week in the Gregorian calendar, with a small index n in the range [1, 5]. It represents the first, second, third, fourth, or fifth weekday of some month.

`weekday_indexed` is a TriviallyCopyable StandardLayoutType.

### Member functions

(constructor) | constructs a `weekday_indexed` (public member function)
weekday | access the stored `weekday` (public member function)
index | access the stored index (public member function)
ok | checks if the weekday and index are both valid (public member function)

### Nonmember functions

operator==operator!= | compares two `weekday_indexed` objects (function)
operator<< | outputs a `weekday_indexed` into a stream (function template)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/weekday_indexed&oldid=104780"