future 클래스
Describes an asynchronous return object.
template<class Ty>
class future;
설명
Each standard asynchronous provider returns an object whose type is an instantiation of this template. A future object provides the only access to the asynchronous provider that it is associated with. If you need multiple asynchronous return objects that are associated with the same asynchronous provider, copy the future object to a shared_future object.
멤버
Public 생성자
Name |
설명 |
---|---|
future 개체를 생성합니다. |
Public 메서드
Name |
설명 |
---|---|
Retrieves the result that is stored in the associated asynchronous state. |
|
Converts the object to a shared_future. |
|
Specifies whether the object is not empty. |
|
Blocks the current thread until the associated asynchronous state is ready. |
|
Blocks until the associated asynchronous state is ready or until the specified time has elapsed. |
|
Blocks until the associated asynchronous state is ready or until a specified point in time. |
Public 연산자
Name |
설명 |
---|---|
Transfers the associated asynchronous state from a specified object. |
요구 사항
헤더: future
네임스페이스: std