std::chrono::time_point<Clock,Duration>::operator++, std::chrono::time_point<Clock,Duration>::operator--
提供: cppreference.com
<tbody>
</tbody>
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以上) |
時点 *this の表現を duration の刻み1個分だけ変更します。
d_ がこの time_point オブジェクトの duration (エポックからの経過時間) を保持しているメンバ変数だとすると、
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 のコピー例
| This section is incomplete Reason: no example |
関連項目
| 刻み数をインクリメントまたはデクリメントします ( std::chrono::duration<Rep,Period>のパブリックメンバ関数)
| |
| time point を指定された時間で変更します (パブリックメンバ関数) | |
| time point に対する加算および減算を行います (関数テンプレート) |