Scroll to navigation

std::chrono::weekday_last(3) C++ Standard Libary std::chrono::weekday_last(3)

NAME

std::chrono::weekday_last - std::chrono::weekday_last

Synopsis

Defined in header <chrono> class weekday_last; (since C++20)

The class weekday_last represents the last weekday of some month.

weekday_last is a TriviallyCopyable StandardLayoutType.

Member functions

constructor constructs a weekday_last object
(public member function) weekday accesses the stored weekday
(public member function) ok checks if the stored weekday is valid
(public member function)


Nonmember functions

operator== compares two weekday_last values (C++20) (function) operator<< outputs a weekday_last into a stream (C++20) (function template)

Helper classes

std::formatter<std::chrono::weekday_last> formatting support for weekday_last (C++20) (class template specialization) std::hash<std::chrono::weekday_last> hash support for std::chrono::weekday_last (C++26) (class template specialization)

2026.11.10 http://cppreference.com