You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
explain of "std::atomic<T>::operator++" is wrong. #141
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.
Activity
nexushoratio commentedon Jan 1, 2026
FYI: This repo is about the tools that export the wiki site as a single archive.
It has nothing to do with the content of the wiki.
But, being a wiki, you can go in and modify it yourself (well, once it unfreezes due to current maintenance).
cubbimew commentedon Apr 19, 2026
"preceding" is correct IMO (note the first one is preceding plus 1, second one just preceding)