std::promise<R>:: swap
From cppreference.net
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::promise
| Member functions | ||||
|
promise::swap
|
||||
| Getting the result | ||||
| Setting the result | ||||
| Non-member Functions | ||||
| Helper Classes | ||||
|
void
swap
(
promise
&
other
)
noexcept
;
|
(C++11以降) | |
2つのpromiseオブジェクトの共有状態を交換します。
目次 |
パラメータ
| other | - | スワップする対象 |
戻り値
(なし)
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
(C++11)
|
std::swap
アルゴリズムを特殊化
(関数テンプレート) |