cpp/utility/exchange

Replaces the value of with  and returns the old value of.

Return value
The old value of.