命名空间
变体
操作

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 起)
(constexpr 自 C++26 起)

赋值 other 的内容。如果 *thisother 都有动态类型 std::exception,则在赋值后 std::strcmp(what(), other.what()) == 0(自 C++11 起)

[编辑] 参数

other - 要赋值的另一个 bad_exception 对象

[编辑] 返回值

*this.