std::chrono::weekday (3) - Linux Manuals
std::chrono::weekday: std::chrono::weekday
NAME
std::chrono::weekday - std::chrono::weekday
Synopsis
Defined in header <chrono>
class weekday; (since C++20)
inline constexpr std::chrono::weekday Sunday{0}; (since C++20)
inline constexpr std::chrono::weekday Monday{1}; (since C++20)
inline constexpr std::chrono::weekday Tuesday{2}; (since C++20)
inline constexpr std::chrono::weekday Wednesday{3}; (since C++20)
inline constexpr std::chrono::weekday Thursday{4}; (since C++20)
inline constexpr std::chrono::weekday Friday{5}; (since C++20)
inline constexpr std::chrono::weekday Saturday{6}; (since C++20)
The class weekday represent a day of the week in the Gregorian calendar. Its normal range is [0, 6], for Sunday through Saturday, but it can hold any value in the range [0, 255]. Seven named constants are predefined in the std::chrono namespace for the seven days of the week.
weekday is a TriviallyCopyable StandardLayoutType.
Member functions
constructor (public member function)
operator++ increments or decrements the weekday
operator++(int) (public member function)
operator--
operator--(int)
operator+= (public member function)
operator-=
operator_unsigned (public member function)
ok (public member function)
operator[] (public member function)
Nonmember functions
operator== (function)
operator!=
operator+ (function)
operator-
operator<< (function template)
to_stream (function template)
from_stream (function template)