std::chrono::weekday::c_encoding, std::chrono::weekday::iso_encoding
Min standard notice:
- Returns the weekday value stored in *this.
# Declarations
constexpr unsigned c_encoding() const noexcept;
(since C++20)
constexpr unsigned iso_encoding() const noexcept;
(since C++20)
# Example
#include <chrono>
#include <iostream>
int main()
{
std::cout << "i: C: ISO: Weekday:\n";
for (unsigned i{0}; i != 8; ++i)
{
const std::chrono::weekday w{i};
std::cout << i << " "
<< w.c_encoding() << " "
<< w.iso_encoding() << " "
<< w << '\n';
}
}