std::make_error_code(std::errc)
来自 cppreference.cn
定义于头文件 <system_error> |
||
std::error_code make_error_code( std::errc e ) noexcept; |
(since C++11) | |
为 errc
枚举 e 创建错误码值。
等价于 std::error_code(static_cast<int>(e), std::generic_category())
[编辑] 参数
e | - | 用于创建错误码的错误码枚举 |
[编辑] 返回值
对应于 e 的错误码。
[编辑] 参见
构造一个 iostream 错误码 (函数) | |
构造一个 future 错误码 (函数) |