名前空間
変種
操作

std::chrono::month

提供: cppreference.com
< cpp‎ | chrono
 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ (C++20)
(C++11)
関係演算子 (C++20で非推奨)
整数比較関数
(C++20)
スワップと型操作
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
一般的な語彙の型
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

初等文字列変換
(C++17)
(C++17)
 
日付と時間のユーティリティ
(C++11)
(C++11)
時刻
(C++20)



(C++20)(C++20)(C++20)(C++20)
時計
(C++20)
                                             
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
カレンダー
(C++20)
month
(C++20)
(C++20)
(C++20)
(C++20)
タイムゾーン
(C++20)
(C++20)
(C++20)
(C++20)
C スタイルの日付と時間
 
 
ヘッダ <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] 内の任意の値を保持できます。 12の月に対応する12個の名前付きの定数が std::chrono 名前空間にあらかじめ定義されています。

monthTriviallyCopyable かつ StandardLayoutType です。

[編集] メンバ関数

month を構築します
(パブリックメンバ関数) [edit]
月をインクリメントまたはデクリメントします
(パブリックメンバ関数) [edit]
月数を加算または減算します
(パブリックメンバ関数) [edit]
格納されている月の値を取得します
(パブリックメンバ関数) [edit]
格納されている月の値が通常の範囲内かどうか調べます
(パブリックメンバ関数) [edit]

[編集] 非メンバ関数

2つの month オブジェクトを比較します
(関数) [edit]
month に対する算術演算を行います
(関数) [edit]
month をストリームに出力します
(関数テンプレート) [edit]
指定された書式に従って month をストリームからパースします
(関数テンプレート) [edit]

[編集] ヘルパークラス

提供された書式に従って month を書式化する std::formatter の特殊化
(クラステンプレートの特殊化) [edit]