名前空間
変種
操作

std::swap(std::promise)

提供: cppreference.com
< cpp‎ | thread‎ | promise

Defined in header <future>
template< class R >
void swap( promise<R> &lhs, promise<R> &rhs );
(C++11およびそれ以降)
std::swapstd::promiseアルゴリズムを専門としています。 lhsのそれとの交流rhsの共有状態を。効果的にlhs.swap(rhs)呼び出し.
Original:
Specializes the std::swap algorithm for std::promise. Exchanges the shared state of lhs with that of rhs. Effectively calls lhs.swap(rhs).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

lhs, rhs -
その状態をスワップすることを約束
Original:
promises whose states to swap
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 例外

noexcept specification:  
noexcept
  (C++11およびそれ以降)

[編集]

[編集] も参照してください

スワップ2約束オブジェクト
Original:
swaps two promise objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数) [edit]