std::bad_exception::operator=
From cppreference.com
< cpp | error | bad exception
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.