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++() noexcept; (1) (since C++20)
constexpr std::chrono::day operator++(int) noexcept; (2) (since C++20)
constexpr std::chrono::day& operator--() noexcept; (3) (since C++20)
constexpr std::chrono::day operator--(int) noexcept; (4) (since C++20)
Adds or subtracts 1 from the day value.
1-2) Performs *this += std::chrono::days{1};
3-4) Performs *this -= std::chrono::days{1};
Parameters
(none)
Return value
1,3) a reference to this day after modification
2,4) a copy of the day made before 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
adds or subtracts a number of days
operator+= (public member function)
operator-=
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