名前空間
変種
操作

std::bad_exception::operator=

From cppreference.com
< cpp‎ | error‎ | bad exception
 
 
ユーティリティライブラリ
言語サポート
型のサポート (基本型、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& operator=( const bad_exception& other ) throw();
(C++11まで)
bad_exception& operator=( const bad_exception& other ) noexcept;
(C++11以降)
(C++26 以降 constexpr)

other の内容を代入します。もし *thisother の両方が動的型 std::exception を持つ場合、代入後には std::strcmp(what(), other.what()) = 0 となります。(C++11 以降)

[編集] パラメータ

その他 - 代入する別の bad_exception オブジェクト

[編集] 戻り値

*this.

English 日本語 中文(简体) 中文(繁體)