std::operator<<(std::error_code)
Определено в заголовочном файле <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
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/error/error_code/operator_ltlt