Namespaces
Variants

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

来自 zh.cppreference.net
 
 
 
 
 
定义于头文件 <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