std::chrono::month
From cppreference.com
| ヘッダー <chrono> で定義 |
||
| class month; |
(C++20以降) | |
| inline constexpr std::chrono::month January{1}; |
(C++20以降) | |
| inline constexpr std::chrono::month February{2}; |
(C++20以降) | |
| inline constexpr std::chrono::month March{3}; |
(C++20以降) | |
| inline constexpr std::chrono::month April{4}; |
(C++20以降) | |
| inline constexpr std::chrono::month May{5}; |
(C++20以降) | |
| inline constexpr std::chrono::month June{6}; |
(C++20以降) | |
| inline constexpr std::chrono::month July{7}; |
(C++20以降) | |
| inline constexpr std::chrono::month August{8}; |
(C++20以降) | |
| inline constexpr std::chrono::month September{9}; |
(C++20以降) | |
| inline constexpr std::chrono::month October{10}; |
(C++20以降) | |
| inline constexpr std::chrono::month November{11}; |
(C++20以降) | |
| inline constexpr std::chrono::month December{12}; |
(C++20以降) | |
monthクラスは、年における月を表します。通常の範囲は[1, 12]ですが、[0, 255]の範囲の任意の数値を保持できます。`std::chrono` 名前空間には、12ヶ月を表す12個の名前付き定数が事前に定義されています。
monthはTriviallyCopyableなStandardLayoutTypeです。
[編集] メンバ関数
monthを構築します(public member function) | |
| 月をインクリメントまたはデクリメントします (public member function) | |
| 月数を加算または減算します (public member function) | |
| 格納されている月値を取得します (public member function) | |
| 格納されている月値が通常の範囲内にあるかどうかを確認します (public member function) |
[編集] 非メンバ関数
| (C++20) |
2つのmonth値を比較します(function) |
| (C++20) |
month に対して演算を実行する(関数) |
| (C++20) |
monthをストリームに出力します(function template) |
| (C++20) |
指定された書式に従ってストリームから month を解析する(関数テンプレート) |
[編集] ヘルパークラス
month の書式設定サポート(クラス テンプレートの特殊化) | |
| std::chrono::monthのハッシュサポート (クラステンプレートの特殊化) |