Talk:cpp/atomic/atomic/operator=
From cppreference.com
< Talk:cpp | atomic/atomic
The sentence "They return a copy of the stored value instead." could be read as meaning that this operator is implemented as { store(desired); return load(); } which would race against some else's store and be very bad.
I read the standard as saying that the implementation must be { store(desired); return desired; } and that is consistent with the GCC8 implementation and the description of the return value earlier.
Perhaps this sentence should be removed or made clearer to avoid confusion?
80.229.24.9 06:51, 2 April 2020 (PDT) MikeC