std::chrono::year::max
De cppreference.com
static constexpr year max() noexcept;
|
(desde C++20) | |
Devuelve el año más grande posible, es decir, std::chrono::year(32767).
Valor de retorno
std::chrono::year(32767)
Ejemplo
Ejecuta este código
#include <iostream>
#include <chrono>
int main()
{
std::cout << "El año máximo es: " << (int)std::chrono::year::max() << '\n';
}
Salida:
El año máximo es: 32767