Namespaces
Variants

std::bad_exception::operator=

来自 zh.cppreference.net
 
 
 
 
 
bad_exception& operator=( const bad_exception& other ) throw();
(至C++11)
bad_exception& operator=( const bad_exception& other ) noexcept;
(自C++11)
(constexpr 自C++26)

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

参数

其他 - 另一个 bad_exception 对象用于赋值

返回值

* this 。