Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Describes an asynchronous provider that is a call wrapper whose call signature is Ty(ArgTypes...). Its associated asynchronous state holds a copy of its callable object in addition to the potential result.
template<class>
class packaged_task;
Members
Public Constructors
Name |
Description |
---|---|
Constructs a packaged_task object. |
|
Destroys a packaged_task object. |
Public Methods
Name |
Description |
---|---|
Returns a future object that has the same associated asynchronous state. |
|
Calls the callable object that's stored in the associated asynchronous state and atomically stores the returned value. |
|
Replaces the associated asynchronous state. |
|
Exchanges the associated asynchronous state with that of a specified object. |
|
Specifies whether the object has an associated asynchronous state. |
Public Operators
Name |
Description |
---|---|
Transfers an associated asynchronous state from a specified object. |
|
Calls the callable object that's stored in the associated asynchronous state, atomically stores the returned value, and sets the state to ready. |
|
Specifies whether the object has an associated asynchronous state. |
Requirements
Header: future
Namespace: std