std::chrono::time_point<Clock,Duration>::operator++, std::chrono::time_point<Clock,Duration>::operator--
From cppreference.com
< cpp | chrono | time point
| constexpr time_point& operator++(); |
(1) | (C++20以降) |
| constexpr time_point operator++( int ); |
(2) | (C++20以降) |
| constexpr time_point& operator--(); |
(3) | (C++20以降) |
| constexpr time_point operator--( int ); |
(4) | (C++20以降) |
durationの1ティック分だけ、表される時刻を変更します。
このtime_pointオブジェクトの期間(エポックからの経過時間)を保持するメンバ変数 `d_` がある場合、
1) `++d_; return *this;` と同等です。
2) `return time_point(d_++);` と同等です。
3) `--d_; return *this;` と同等です。
4) `return time_point(d_--);` と同等です。
目次 |
[編集] パラメータ
(なし)
[編集] 戻り値
1,3) 変更後のこの
time_pointへの参照。2,4) 変更前の
time_pointのコピー。[編集] 例
| このセクションは未完成です 理由: 例がありません |
[編集] 関連項目
| ティック数を増減する ( std::chrono::duration<Rep,Period>のpublicメンバ関数) | |
| 指定された期間によって時刻の時点を変更する (public メンバー関数) | |
| (C++11) |
タイムポイントを含む加算および減算演算を実行 (関数テンプレート) |