promise::swap Method
Exchanges the associated asynchronous state of this promise object with that of a specified object.
void swap(promise& Other) _NOEXCEPT;
Parameters
- Other
A promise object.
Requirements
Header: future
Namespace: std
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Exchanges the associated asynchronous state of this promise object with that of a specified object.
void swap(promise& Other) _NOEXCEPT;
Header: future
Namespace: std