std::chrono::year:: min
From de.cppreference.net
C++
Date and time library
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::year
| Member functions | ||||
|
year::min
|
||||
| Nonmember functions | ||||
| Helper classes | ||||
|
(C++26)
|
|
static
constexpr
std::
chrono
::
year
min
(
)
noexcept
;
|
(seit C++20) | |
Gibt das kleinstmögliche
year
zurück, also
std::
chrono
::
year
(
-
32767
)
.
Rückgabewert
std:: chrono :: year ( - 32767 )
Beispiel
Diesen Code ausführen
#include <chrono> #include <iostream> int main() { std::cout << "The minimum year is: " << (int)std::chrono::year::min() << '\n'; }
Ausgabe:
The minimum year is: -32767