-
Notifications
You must be signed in to change notification settings - Fork 120
Description
explain of std::atomic::operator++ is wrong.
The original text in "Return value" section:
Return value
operator++() and operator--() return the value of the atomic variable after the modification. Formally, the result of incrementing/decrementing the value immediately preceding the effects of this function in the modification order of *this.operator++(int) and operator--(int) return the value of the atomic variable before the modification. Formally, the value immediately preceding the effects of this function in the modification order of *this.
should be:
operator++() and operator--() return the value of the atomic variable after the modification. Formally, the result of incrementing/decrementing the value immediately succeeding the effects of this function in the modification order of *this.