Namespaces
Variants

std::nested_exception::nested_exception

ja.cppreference.net より
 
 
ユーティリティライブラリ
言語サポート
型サポート (基本型、RTTI)
ライブラリ機能テストマクロ (C++20)
プログラムユーティリティ
可変長引数関数
コルーチンサポート (C++20)
契約サポート (C++26)
三方比較
(C++20)
(C++20)(C++20)(C++20)    
(C++20)(C++20)(C++20)

汎用ユーティリティ
関係演算子 (C++20で非推奨)
 
 
 
nested_exception() noexcept;
(1) (C++11以降)
(C++26からconstexpr)
nested_exception( const nested_exception& other ) noexcept = default;
(2) (C++11以降)
(C++26からconstexpr)

新しいnested_exception オブジェクトを構築します。

1) デフォルトコンストラクタ。std::current_exception() を呼び出して取得した例外オブジェクトを新しいnested_exception オブジェクト内に格納します。
2) コピーコンストラクタ。otherに格納されている例外でオブジェクトを初期化します。

パラメータ

other - 内容の初期化に使用するネストされた例外