std::packaged_task<R(Args...)>::reset
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
void reset(); |
(C++11以上) | |
リセットした状態では、以前の実行の結果を放棄する。新しい共有状態が構築されます.
Original:
Resets the state abandoning the results of previous executions. New shared state is constructed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
*this = packaged_task(std::move(f))が格納されているタスクである
f
、に相当しますOriginal:
Equivalent to *this = packaged_task(std::move(f)), where
f
is the stored task.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
例外
- std::future_error場合*thisない共有状態を持っていません。エラー条件がno_stateに設定されています.Original:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - std::bad_alloc新しい共有された状態のために十分なメモリがなかった場合..Original:std::bad_alloc if there was not enough memory for a new shared state.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - いずれかの例外は新しいコンストラクタに移動しますの
packaged_task
によってスローOriginal:any exception thrown by the コンストラクタに移動します of the newpackaged_task
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.