std::chrono::last_spec
提供: cppreference.com
ヘッダ <chrono> で定義
|
||
struct last_spec { |
(C++20以上) | |
inline constexpr last_spec last{}; |
(C++20以上) | |
last_spec
は他のカレンダー型と共に使用してシーケンスの最後を示すための空のタグ型です。 文脈によって、月の最後の日を表したり (2018年2月の最後の日すなわち 2018-02-28 を表す 2018y/February/last など)、月の最後の曜日を表したり (2018年2月の最後の日曜日すなわち 2018-02-25 を表す 2018/February/Sunday[last] など) することができます。