std::chrono::time_point<Clock,Duration>::operator+, operator-
提供: cppreference.com
< cpp | chrono | time point
(1) | ||
time_point& operator+=(const duration& d ); | (C++17未満) | |
constexpr time_point& operator+=(const duration& d ); | (C++17以上) | |
(2) | ||
time_point& operator-=(const duration& d ); | (C++17未満) | |
constexpr time_point& operator-=(const duration& d ); | (C++17以上) | |
time point を指定された時間で変更します。
1)
pt
にオフセット d
を適用します。 実質的に、 d
は内部的に格納されている時間 d_
に d_ += d のように加算されます。2)
pt
にオフセット d
を負の方向に適用します。 実質的に、 d
は内部的に格納されている時間 d_
から d_ -= d のように減算されます。目次 |
[編集]引数
d | - | 適用する時間のオフセット |
[編集]戻り値
*this。
[編集]例外
(なし)
[編集]関連項目
time point に対する加算および減算を行います (関数テンプレート) |