std::bad_exception::operator=
来自 cppreference.cn
< cpp | 错误 | bad exception
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.