std::bad_exception:: operator=
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
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::exception
,则赋值后满足
std::
strcmp
(
what
(
)
, other.
what
(
)
)
==
0
。
(C++11 起)
参数
| 其他 | - |
另一个
bad_exception
对象用于赋值
|
返回值
* this 。