名前空間
変種
操作

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 メンバー関数) [編集]
タイムポイントを含む加算および減算演算を実行
(関数テンプレート) [編集]
English 日本語 中文(简体) 中文(繁體)