std::operator<<(std::error_code)
来自 cppreference.cn
< cpp | error | error code
定义于头文件 <system_error> |
||
template< class CharT, class Traits > std::basic_ostream<CharT, Traits>& |
(自 C++11 起) | |
对错误码 ec 执行流输出操作。
等价于 os << ec.category().name() << ':' << ec.value()。
[编辑] 参数
os | - | 要插入数据的输出流 |
ec | - | 错误码 |
[编辑] 返回值
os