Atomic.exchange

Atomically swap the value

struct Atomic(T)
shared
T
exchange
(
MemoryOrder mo = MemoryOrder.seq
)
if (
__traits(isIntegral, T) ||
isPointer!T
)

Meta