Atomically replaces the underlying value with a desired value (a read-modify-write operation). Memory is affected according to the value of order.
The new desired value
The atomic value BEFORE the exchange
See Implementation
Atomically replaces the underlying value with a desired value (a read-modify-write operation). Memory is affected according to the value of order.