名稱空間
變體
操作

std::bad_exception::operator=

來自 cppreference.com
 
 
 
 
 
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.