Spec-Zone.ru › C++

std::chrono::year::max

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/chrono/year/max

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API