std::chrono::day::operator+=,std::chrono::day::operator-= (3) - Linux Manuals
std::chrono::day::operator+=,std::chrono::day::operator-=: std::chrono::day::operator+=,std::chrono::day::operator-=
Command to display std::chrono::day::operator+=,std::chrono::day::operator-=
manual in Linux: $ man 3 std::chrono::day::operator+=,std::chrono::day::operator-=
NAME
std::chrono::day::operator+=,std::chrono::day::operator-= - std::chrono::day::operator+=,std::chrono::day::operator-=
Synopsis
constexpr std::chrono::day& operator+=(const std::chrono::days& d) noexcept; (1) (since C++20)
constexpr std::chrono::day& operator-=(const std::chrono::days& d) noexcept; (2) (since C++20)
Adds or subtracts d.count() days from the day value.
1) Equivalent to *this = *this + d;
2) Equivalent to *this = *this - d;
Return value
A reference to this day after modification
Notes
If the result would be outside the range [0, 255], the actual stored value is unspecified.
Example
This section is incomplete
Reason: no example
See also
operator++ increments or decrements the day
operator++(int) (public member function)
operator--
operator--(int)
adds or subtracts a number of days and a day, or find the difference between two days
operator+ (function)
operator-
Pages related to std::chrono::day::operator+=,std::chrono::day::operator-=
- std::chrono::day::operator++,std::chrono::day::operator-- (3) - - std::chrono::day::operator++,std::chrono::day::operator--
- std::chrono::day::operatorunsigned (3) - std::chrono::day::operatorunsigned
- std::chrono::day::ok (3) - std::chrono::day::ok
- std::chrono::day::day (3) - std::chrono::day::day
- std::chrono::day (3) - std::chrono::day
- std::chrono::duration (3) - std::chrono::duration
- std::chrono::duration<Rep,Period>::count (3) - std::chrono::duration<Rep,Period>::count
- std::chrono::duration<Rep,Period>::duration (3) - std::chrono::duration<Rep,Period>::duration
- std::chrono::duration<Rep,Period>::max (3) - std::chrono::duration<Rep,Period>::max
- std::chrono::duration<Rep,Period>::min (3) - std::chrono::duration<Rep,Period>::min
- std::chrono::duration<Rep,Period>::operator+(unary), (3) - std::chrono::duration<Rep,Period>::operator+(unary),
- std::chrono::duration<Rep,Period>::operator+(unary),std::chrono::duration<Rep,Period>::operator-(unary) (3) - std::chrono::duration<Rep,Period>::operator+(unary),std::chrono::duration<Rep,Period>::operator-(unary)
- std::chrono::duration<Rep,Period>::operator++, (3) - std::chrono::duration<Rep,Period>::operator++,
- std::chrono::duration<Rep,Period>::operator++,std::chrono::duration<Rep,Period>::operator-- (3) - - std::chrono::duration<Rep,Period>::operator++,std::chrono::duration<Rep,Period>::operator--
- std::chrono::duration<Rep,Period>::operator= (3) - std::chrono::duration<Rep,Period>::operator=
- std::chrono::duration<Rep,Period>::zero (3) - std::chrono::duration<Rep,Period>::zero
- std::chrono::duration_cast (3) - std::chrono::duration_cast
- std::chrono::duration_values (3) - std::chrono::duration_values