std::bad_exception::operator=

来自cppreference.com
< cpp‎ | error‎ | 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 的内容赋值。*thisother 均拥有动态类型 std::bad_exception,则赋值后 std::strcmp(what(), other.what())==0(C++11 起)

[编辑]参数

other - 要赋值的另一 bad_exception 对象

[编辑]返回值

*this.

close