Namespaces
Variants

std::bad_exception:: operator=

From cppreference.net
Utilities library
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