std::chrono::weekday::operator[]

From cppreference.com
< cpplrm; | chronolrm; | weekday
Date and time utilities
(C++11)
(C++11)
Clocks
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
C-style date and time
constexpr std::chrono::weekday_indexed operator[](unsigned index) const noexcept;
(1) (since C++20)
constexpr std::chrono::weekday_last operator[](std::chrono::last_spec) const noexcept;
(2) (since C++20)
1) Constructs a weekday_indexed from *this and index. The result represents the index-th weekday in some yet-to-be-specified month. If index is not in the range [1, 5] or if !ok() the values held in the result is unspecified.
2) Constructs a weekday_last from *this. The result represents the last weekday in some yet-to-be-specified month.

Return value