Exchange ownership of the asynchronous results associated with two std::experimental::promise
objects.
void swap(promise& other);
Exchange ownership of the asynchronous results associated with
other
and *this
.
The asynchronous result associated with other
prior to the invocation of swap
(if any) is associated with *this
. The asynchronous result associated
with *this
prior to the invocation of swap
(if any) is associated with other
Nothing.
#include <experimental/future>