Search:
Reference
<ios>
io_errc
make_error_code
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
io_errc
Input/output error conditions
(enum class )
make_error_condition (io_errc)
Make error condition
(function )
iostream_category
Return iostream category
(function )
C++
Information
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfenv> (fenv.h)
<cfloat> (float.h)
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctgmath> (tgmath.h)
<ctime> (time.h)
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
<array>
<deque>
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
<unordered_map>
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
<atomic>
<condition_variable>
<future>
<mutex>
<thread>
Other:
<algorithm>
<bitset>
<chrono>
<codecvt>
<complex>
<exception>
<functional>
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<random>
<ratio>
<regex>
<stdexcept>
<string>
<system_error>
<tuple>
<typeindex>
<typeinfo>
<type_traits>
<utility>
<valarray>
<ios>
types:
basic_ios
fpos
ios
ios_base
io_errc
streamoff
streampos
streamsize
wios
wstreampos
manipulators:
boolalpha
dec
defaultfloat
fixed
hex
hexfloat
internal
left
noboolalpha
noshowbase
noshowpoint
noshowpos
noskipws
nounitbuf
nouppercase
oct
right
scientific
showbase
showpoint
showpos
skipws
unitbuf
uppercase
other functions:
iostream_category
io_errc
non-member overloads:
make_error_code (io_errc)
make_error_condition (io_errc)
non-member specializations:
is_error_code_enum (io_errc)