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
Exchanges the associated asynchronous state of this promise object with that of a specified object.
void swap(promise& Other) _NOEXCEPT;
Header: future
Namespace: std