命名空间
变体
操作

std::bad_exception::operator=

来自 cppreference.cn
 
 
 
 
 
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.