std::chrono::weekday
cppreference.com
<tbody>
</tbody>
class weekday; |
( C++20) | |
inline constexpr std::chrono::weekday Sunday{0}; |
( C++20) | |
inline constexpr std::chrono::weekday Monday{1}; |
( C++20) | |
inline constexpr std::chrono::weekday Tuesday{2}; |
( C++20) | |
inline constexpr std::chrono::weekday Wednesday{3}; |
( C++20) | |
inline constexpr std::chrono::weekday Thursday{4}; |
( C++20) | |
inline constexpr std::chrono::weekday Friday{5}; |
( C++20) | |
inline constexpr std::chrono::weekday Saturday{6}; |
( C++20) | |
weekday . [0, 6] , [0, 255]. std::chrono .
weekday TriviallyCopyable StandardLayoutType.
-
weekday (public -) | |
| (public -) | |
| (public -) | |
| ISO 8601 (public -) | |
| , (public -) | |
weekday_indexed weekday_last weekday (public -) |
,
(C++20) |
weekday () |
(C++20) |
weekday () |
(C++20) |
weekday ( ) |
(C++20) |
weekday ( ) |
weekday ( ) | |
| std::chrono::weekday ( ) |
#include <chrono>
#include <iostream>
int main()
{
std::chrono::weekday x{42/13};
std::cout << x++ << '\n';
std::cout << x << '\n';
std::cout << ++x << '\n';
}
:
Wed
Thu
Fri
(C++20) |
() |