std::error_code::assign
STD:错误[医]代码::分配
void assign( int ec, const error_category& ecat | | (since C++11) |
---|
用错误代码替换内容。ec
以及相应的范畴ecat
...
参数
ec | - | platform-dependent error code enum to assign |
---|---|---|
ecat | - | error category corresponding to ec |
返回值
%280%29
例外
noexcept
规格:
noexcept
另见
operator= | assigns another error code (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。