コード例 #1
0
 void swap( packaged_task & other) noexcept {
     std::swap( obtained_, other.obtained_);
     task_.swap( other.task_);
 }
コード例 #2
0
ファイル: promise.hpp プロジェクト: AbhinavJain13/turicreate
 void swap( promise_base & other) noexcept {
     std::swap( obtained_, other.obtained_);
     future_.swap( other.future_);
 }