std::chrono::time_point<Clock,Duration>:: operator++, std::chrono::time_point<Clock,Duration>:: operator--
From cppreference.net
<
cpp
|
chrono
|
time point
C++
Date and time library
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::time_point
| Member functions | ||||
|
time_point::operator++
time_point::operator--
(C++20)
(C++20)
|
||||
| Non-member functions | ||||
|
(until C++20)
(C++20)
|
||||
|
(C++17)
|
||||
|
(C++17)
|
||||
|
(C++17)
|
||||
| Helper classes | ||||
|
(C++26)
|
|
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
オブジェクトの期間(すなわち、エポックからの経過時間)を保持するメンバ変数である場合、
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メンバ関数)
|
|
|
指定されたdurationでtime pointを変更する
(publicメンバ関数) |
|
|
(C++11)
|
time pointを含む加算および減算演算を実行する
(関数テンプレート) |