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부터)
매개변수
| other | - |
할당할 다른
bad_exception
객체
|
반환값
* this .