다음을 통해 공유


promise::promise 생성자

promise 개체를 생성합니다.

promise();
template<class Alloc>
promise(
   allocator_arg_t,
   const Alloc& Al
);
promise(
   promise&& Other
) _NOEXCEPT;

매개 변수

  • Al
    메모리 할당자입니다.자세한 내용은 <allocators>를 참조하십시오.

  • Other
    promise 개체

설명

첫 번째 생성자 구문에 빈promise 개체입니다.

두 번째 생성자는 빈 생성 promise 개체와 사용 하 여 Al 메모리 할당 합니다.

세 번째 생성자 구문에 promise 개체와 관련 된 비동기 상태에서 전송 Other, 고 Other 빈.

요구 사항

헤더: 미래

네임 스페이스: std

참고 항목

참조

promise Class

<future>