promise Class
Describes an asynchronous provider.
template<class Ty>
class promise;
Members
Public Constructors
Name |
Description |
---|---|
Constructs a promise object. |
Public Methods
Name |
Description |
---|---|
Returns a future associated with this promise. |
|
Atomically sets the result of this promise to indicate an exception. |
|
Atomically sets the result of this promise to indicate an exception, and delivers the notification only after all thread-local objects in the current thread have been destroyed (usually at thread exit). |
|
Atomically sets the result of this promise to indicate a value. |
|
Atomically sets the result of this promise to indicate a value, and delivers the notification only after all thread-local objects in the current thread have been destroyed (usually at thread exit). |
|
Exchanges the associated asynchronous state of this promise with that of a specified promise object. |
Public Operators
Name |
Description |
---|---|
Assignment of the shared state of this promise object. |
Inheritance Hierarchy
promise
Requirements
Header: future
Namespace: std