std::bad_exception::operator=
来自cppreference.com
< cpp | error | bad exception
工具库
诊断库
std::bad_exception
成员函数 | ||||
bad_exception::operator= | ||||
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::bad_exception
,则赋值后 std::strcmp(what(), other.what())==0。(C++11 起)
[编辑]参数
other | - | 要赋值的另一 bad_exception 对象 |
[编辑]返回值
*this.