Namespaces
Variants

std::chrono::year:: max

From cppreference.net
static constexpr year max ( ) noexcept ;
(C++20부터)

가능한 가장 큰 year , 즉 std:: chrono :: year ( 32767 ) 를 반환합니다.

반환값

std:: chrono :: year ( 32767 )

예제

#include <chrono>
#include <iostream>
int main()
{
    std::cout << "The maximum year is: " << (int)std::chrono::year::max() << '\n';
}

출력:

The maximum year is: 32767