std::system_error::operator=

< cpp‎ | error‎ | system error
system_error& operator=( const system_error& other ) noexcept;
(C++11 起)

other 的内容赋值。若 赋值后*thisother 均拥有动态类型 std::system_errorstd::strcmp(what(), other.what()) == 0

参数

other - 用以赋值的另一 system_error 对象

返回值

*this

示例