std::make_exception_ptr
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
ヘッダ <exception> で定義
|
||
template< class E > std::exception_ptr make_exception_ptr( E e ) |
(C++11以上) | |
実行しているかのように、std::exception_ptrのコピーへの参照を保持
e
を作成しますOriginal:
Creates an std::exception_ptr that holds a reference to a copy of
e
, as if by executingThe 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.
try {
throw e;
} catch(...) {
return std::current_exception();
}
目次 |
パラメータ
(なし)
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::exception_ptrのコピー、または
e
のインスタンスまたはstd::bad_allocのインスタンスへの参照を保持してstd::bad_exceptionのインスタンス(std::current_exceptionを参照してください).Original:
An instance of std::exception_ptr holding a reference to the copy of
e
, or to an instance of std::bad_alloc or to an instance of std::bad_exception (see std::current_exception).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.
例外
noexcept 指定:
noexcept