Namespaces
Variants

std::chrono::year_month:: year_month

From cppreference.net
year_month ( ) = default ;
(1) (seit C++20)
constexpr year_month ( const std:: chrono :: year & y,
const std:: chrono :: month & m ) noexcept ;
(2) (seit C++20)

Konstruiert ein year_month Objekt.

1) Der Standardkonstruktor lässt das Jahr und den Monat uninitialisiert.
2) Konstruiert ein year_month -Objekt, das das Jahr y und den Monat m speichert.

Hinweise

Eine bequemere Möglichkeit, ein year_month zu konstruieren, ist mit operator / , z.B., 2007y / std:: chrono :: April .

Siehe auch

(C++20)
Konventionelle Syntax zur Erstellung von Gregorianischen Kalenderdaten
(Funktion)