std::io_errc (3) - Linux Manuals
std::io_errc: std::io_errc
NAME
Synopsis
Defined in header <ios>
enum class io_errc {
stream = 1, (since C++11)
};
The scoped enumeration std::io_errc defines the error codes reported by I/O streams in std::ios_base::failure exception objects. Only one error code (std::io_errc::stream) is required, although the implementation may define additional error codes. Because the appropriate specialization of std::is_error_code_enum is provided, values of type std::io_errc are implicitly convertible to std::error_code.
Member constants
Enumeration constant Value
stream 1
Non-member functions
make_error_code(std::io_errc) constructs an iostream error code
(C++11)
make_error_condition(std::io_errc) constructs an iostream error_condition
(C++11)
Helper classes
is_error_code_enum<std::io_errc> extends the type trait std::is_error_code_enum to identify iostream error codes
(C++11)
Example
// Run this code
Output:
See also
error_code holds a platform-dependent error code
(C++11)
error_condition holds a portable error code
(C++11)
failure (public member class of std::ios_base)