Namespaces
Variants

std::bad_exception::bad_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で非推奨)
 
 
 
bad_exception() throw();
(1) (C++11まで)
bad_exception() noexcept;
(C++11から)
(C++26からconstexpr)
bad_exception( const bad_exception& other ) throw();
(2) (C++11まで)
bad_exception( const bad_exception& other ) noexcept;
(C++11から)
(C++26からconstexpr)

新しい bad_exception オブジェクトを構築します.

1) デフォルトコンストラクタ. what() は実装定義の文字列を返します.
2) コピーコンストラクタ. オブジェクトを other の内容で初期化します. *this と other が両方とも動的型 std::bad_exception の場合, std::strcmp(what(), other.what()) == 0 (C++11から) .

パラメータ

その他 - bad_exception オブジェクトの初期化に使用する