std::chrono::year_month_weekday_last:: ok
From ja.cppreference.net
<
cpp
|
chrono
|
year month weekday last
C++
Date and time library
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::year_month_weekday_last
| Member functions | ||||
|
year_month_weekday_last::ok
|
||||
| Nonmember functions | ||||
| Helper classes | ||||
|
constexpr
bool
ok
(
)
const
noexcept
;
|
(C++20以降) | |
このオブジェクトが有効な日付を表しているかどうかをチェックします。
year_month_weekday_last
は特定の月の最後の曜日を表すため、年、月、および曜日が有効である限り有効です。
戻り値
year ( ) . ok ( ) && month ( ) . ok ( ) && weekday ( ) . ok ( )
**注記**: 提供されたコードはC++コードブロック内にあり、HTMLタグや属性、C++固有の用語(`year`, `month`, `weekday`, `ok`など)は翻訳対象外のため、原文のまま保持されています。コードの構造と意味は変更されていません。