std::chrono::duration<Rep,Period>::operator++, std::chrono::duration<Rep,Period>::operator-- - cppreference.com (original) (raw)
| duration& operator++(); | (1) | (since C++11) (constexpr since C++17) |
|---|---|---|
| duration operator++( int ); | (2) | (since C++11) (constexpr since C++17) |
| duration& operator--(); | (3) | (since C++11) (constexpr since C++17) |
| duration operator--( int ); | (4) | (since C++11) (constexpr since C++17) |
Increments or decrements the number of ticks for this duration.
If rep_ is a member variable holding the number of ticks in a duration object,
Equivalent to ++rep_; return *this;.
Equivalent to return duration(rep_++).
Equivalent to --rep_; return *this;.
Equivalent to return duration(rep_--);.
[edit] Parameters
(none)
[edit] Return value
1,3) A reference to this duration after modification.
2,4) A copy of the duration made before modification.