다음을 통해 공유


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::future 생성자

future 개체를 생성합니다.

Public 메서드

Name

설명

future::get 메서드

Retrieves the result that is stored in the associated asynchronous state.

future::share 메서드

Converts the object to a shared_future.

future::valid 메서드

Specifies whether the object is not empty.

future::wait 메서드

Blocks the current thread until the associated asynchronous state is ready.

future::wait_for 메서드

Blocks until the associated asynchronous state is ready or until the specified time has elapsed.

future::wait_until 메서드

Blocks until the associated asynchronous state is ready or until a specified point in time.

Public 연산자

Name

설명

future::operator= 연산자

Transfers the associated asynchronous state from a specified object.

요구 사항

헤더: future

네임스페이스: std

참고 항목

참조

<future>

기타 리소스

C++ 표준 라이브러리 헤더 파일