다음을 통해 공유


함수 (<future>)를 교체 합니다.

교환 된 비동기 상태 연결 하나 promise 개체와는 다른.

template<class Ty>
   void swap(promise<Ty>& Left, promise<Ty>& Right) noexcept;
template<class Ty, class... ArgTypes>
   void swap(packaged_task<Ty(ArgTypes...)>& Left,
      packaged_task<Ty(ArgTypes...)>& Right) noexcept;

매개 변수

  • Left
    왼쪽 promise 개체입니다.

  • Right
    오른쪽 promise 개체입니다.

요구 사항

헤더: 미래

네임 스페이스: std

참고 항목

참조

promise Class

<future>