std::chrono::year::max
Von cppreference.com
| static constexpr year max() noexcept; |
(seit C++20) | |
Gibt das größtmögliche year zurück, d.h. std::chrono::year(32767).
[bearbeiten] Rückgabewert
std::chrono::year(32767)
[bearbeiten] Beispiel
Führen Sie diesen Code aus
#include <chrono> #include <iostream> int main() { std::cout << "The maximum year is: " << (int)std::chrono::year::max() << '\n'; }
Ausgabe
The maximum year is: 32767