名前空間
変種
操作

std::make_exception_ptr

提供: cppreference.com
< cpp‎ | error
2012年10月26日 (金) 07:00時点におけるTranslationBot (トーク | 投稿記録)による版

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)

 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ (C++20)
(C++11)
関係演算子 (C++20で非推奨)
整数比較関数
(C++20)
スワップと型操作
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
一般的な語彙の型
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

初等文字列変換
(C++17)
(C++17)
 
エラー処理
例外処理
make_exception_ptr
(C++11)
例外処理の失敗
(C++17未満)
(C++17未満)
(C++11)(C++17未満)
(C++17未満)
エラー番号
エラー番号
 
ヘッダ <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 executing
The text has been machine-translated via Google Translate.
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.

値を返します

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.

例外

noexcept 指定:  
noexcept
  

も参照してください

テンプレート:cpp/error/dcl list current exception