名前空間
変種
操作

std::experimental::swap(std::experimental::promise)

From cppreference.com
 
 
 
 
 
template< class R >

void swap( std::experimental::promise<R> &lhs,

           std::experimental::promise<R> &rhs ) noexcept;

std::experimental::promise のための swap アルゴリズムをオーバーロードします。lhs の状態と rhs の状態を交換します。実質的に lhs.swap(rhs) を呼び出します。

目次

[編集] パラメータ

lhs, rhs - 交換する promise の状態

[編集] 戻り値

(なし)

[編集]

[編集] 関連項目

2つのpromiseオブジェクトを入れ替える
(std::promise<R> のメンバ関数) [編集]
English 日本語 中文(简体) 中文(繁體)