cpp/thread/promise/swap2

Specializes the std algorithm for std. Exchanges the shared state of with that of. Effectively calls.

Return value
(none)