io_errc

function
<ios> <iostream>

std::make_error_condition (io_errc)

error_code make_error_condition (io_errc e);
error_code make_error_condition (io_errc e) noexcept;
Make error condition
Creates an error_condition object from the io_errc enum value e (of the iostream_category).

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

This overload is called by error_condition's constructor when passed an argument of type io_errc.

Parameters

e
An enum value of type io_errc.

Return value

An error_condition object representing the enum value e.

Exception safety

No-throw guarantee: this function never throws exceptions.

See also