std::operator<<(std::error_code)

来自cppreference.com
 
 
 
 
 
<tbody> </tbody>
在标头 <system_error> 定义
template< class CharT, class Traits > std::basic_ostream<CharT, Traits>& operator<<( basic_ostream<CharT, Traits>& os, const error_code& ec );
(C++11 起)

进行对错误码 ec 的流输出操作。

等价于 os << ec.category().name() << ':' << ec.value

参数

os - 要插入数据的输出流
ec - 错误码

返回值

os