Namespaces
Variants

std::bad_exception:: operator=

From cppreference.net
Utilities library
bad_exception & operator = ( const bad_exception & other ) throw ( ) ;
(C++11まで)
bad_exception & operator = ( const bad_exception & other ) noexcept ;
(C++11から)
(C++26からconstexpr)

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

パラメータ

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

戻り値

* this .