Namespaces
Variants

std::chrono::year_month:: year_month

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

year_month 객체를 생성합니다.

1) 기본 생성자는 연도와 월을 초기화하지 않은 상태로 둡니다.
2) year_month 객체를 생성하여 연도 y 와 월 m 을 저장합니다.

참고 사항

year_month 를 구성하는 더 편리한 방법은 operator / 를 사용하는 것입니다, 예를 들어 2007y / std:: chrono :: April 와 같습니다.

참고 항목

(C++20)
그레고리력 날짜 생성을 위한 관례적 구문
(함수)