27 Time library [time]

27.5 Class template duration [time.duration]

27.5.4 Arithmetic [time.duration.arithmetic]

constexpr common_type_t<duration> operator+() const;
Returns: common_­type_­t<duration>(*this).
constexpr common_type_t<duration> operator-() const;
Returns: common_­type_­t<duration>(-rep_­).
constexpr duration& operator++();
Effects: Equivalent to: ++rep_­.
Returns: *this.
constexpr duration operator++(int);
Effects: Equivalent to: return duration(rep_­++);
constexpr duration& operator--();
Effects: Equivalent to: --rep_­.
Returns: *this.
constexpr duration operator--(int);
Effects: Equivalent to: return duration(rep_­--);
constexpr duration& operator+=(const duration& d);
Effects: Equivalent to: rep_­ += d.count().
Returns: *this.
constexpr duration& operator-=(const duration& d);
Effects: Equivalent to: rep_­ -= d.count().
Returns: *this.
constexpr duration& operator*=(const rep& rhs);
Effects: Equivalent to: rep_­ *= rhs.
Returns: *this.
constexpr duration& operator/=(const rep& rhs);
Effects: Equivalent to: rep_­ /= rhs.
Returns: *this.
constexpr duration& operator%=(const rep& rhs);
Effects: Equivalent to: rep_­ %= rhs.
Returns: *this.
constexpr duration& operator%=(const duration& rhs);
Effects: Equivalent to: rep_­ %= rhs.count().
Returns: *this.