T exchange( T desired, std::memory_order order = std::memory_order_seq_cst ) const noexcept;
Atomically replaces the value of the referenced object with
desired. The operation is a read-modify-write operation. Memory is affected according to the value of
|desired||-||value to assign|
|order||-||memory order constraints to enforce|
The value of the referenced object before the call.
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.