function
<ios> <iostream>

std::make_error_code (io_errc)

error_code make_error_code (io_errc e);
Make error code
Creates an error_code object of the iostream_category from the io_errc enum value e.

It returns the same as
 
error_code(static_cast<int>(e),iostream_category());


This function is called by error_code's constructor overload for the io_errc type.

Parameters

e
An enum value of type io_errc.

Return value

An error_code object representing the enum value e.

Exception safety

No-throw guarantee: this function never throws exceptions.

See also