tmp/tmpg_f8kgob/{from.md → to.md}
RENAMED
|
@@ -57,22 +57,19 @@ namespace std {
|
|
| 57 |
network_unreachable, // ENETUNREACH
|
| 58 |
no_buffer_space, // ENOBUFS
|
| 59 |
no_child_process, // ECHILD
|
| 60 |
no_link, // ENOLINK
|
| 61 |
no_lock_available, // ENOLCK
|
| 62 |
-
no_message_available, // ENODATA
|
| 63 |
no_message, // ENOMSG
|
| 64 |
no_protocol_option, // ENOPROTOOPT
|
| 65 |
no_space_on_device, // ENOSPC
|
| 66 |
-
no_stream_resources, // ENOSR
|
| 67 |
no_such_device_or_address, // ENXIO
|
| 68 |
no_such_device, // ENODEV
|
| 69 |
no_such_file_or_directory, // ENOENT
|
| 70 |
no_such_process, // ESRCH
|
| 71 |
not_a_directory, // ENOTDIR
|
| 72 |
not_a_socket, // ENOTSOCK
|
| 73 |
-
not_a_stream, // ENOSTR
|
| 74 |
not_connected, // ENOTCONN
|
| 75 |
not_enough_memory, // ENOMEM
|
| 76 |
not_supported, // ENOTSUP
|
| 77 |
operation_canceled, // ECANCELED
|
| 78 |
operation_in_progress, // EINPROGRESS
|
|
@@ -86,11 +83,10 @@ namespace std {
|
|
| 86 |
read_only_file_system, // EROFS
|
| 87 |
resource_deadlock_would_occur, // EDEADLK
|
| 88 |
resource_unavailable_try_again, // EAGAIN
|
| 89 |
result_out_of_range, // ERANGE
|
| 90 |
state_not_recoverable, // ENOTRECOVERABLE
|
| 91 |
-
stream_timeout, // ETIME
|
| 92 |
text_file_busy, // ETXTBSY
|
| 93 |
timed_out, // ETIMEDOUT
|
| 94 |
too_many_files_open_in_system, // ENFILE
|
| 95 |
too_many_files_open, // EMFILE
|
| 96 |
too_many_links, // EMLINK
|
|
@@ -109,11 +105,11 @@ namespace std {
|
|
| 109 |
operator<<(basic_ostream<charT, traits>& os, const error_code& ec);
|
| 110 |
|
| 111 |
// [syserr.errcondition.nonmembers], non-member functions
|
| 112 |
error_condition make_error_condition(errc e) noexcept;
|
| 113 |
|
| 114 |
-
// [syserr.compare], comparison functions
|
| 115 |
bool operator==(const error_code& lhs, const error_code& rhs) noexcept;
|
| 116 |
bool operator==(const error_code& lhs, const error_condition& rhs) noexcept;
|
| 117 |
bool operator==(const error_condition& lhs, const error_condition& rhs) noexcept;
|
| 118 |
strong_ordering operator<=>(const error_code& lhs, const error_code& rhs) noexcept;
|
| 119 |
strong_ordering operator<=>(const error_condition& lhs, const error_condition& rhs) noexcept;
|
|
@@ -123,21 +119,21 @@ namespace std {
|
|
| 123 |
template<> struct hash<error_code>;
|
| 124 |
template<> struct hash<error_condition>;
|
| 125 |
|
| 126 |
// [syserr], system error support
|
| 127 |
template<class T>
|
| 128 |
-
|
| 129 |
template<class T>
|
| 130 |
-
|
| 131 |
}
|
| 132 |
```
|
| 133 |
|
| 134 |
-
The value of each `enum errc`
|
| 135 |
-
|
| 136 |
`<system_error>` implementation exposes the `<cerrno>` macros is
|
| 137 |
unspecified.
|
| 138 |
|
| 139 |
-
The `is_error_code_enum` and `is_error_condition_enum` may be
|
| 140 |
specialized for program-defined types to indicate that such types are
|
| 141 |
-
eligible for `class error_code` and `class error_condition`
|
| 142 |
conversions, respectively.
|
| 143 |
|
|
|
|
| 57 |
network_unreachable, // ENETUNREACH
|
| 58 |
no_buffer_space, // ENOBUFS
|
| 59 |
no_child_process, // ECHILD
|
| 60 |
no_link, // ENOLINK
|
| 61 |
no_lock_available, // ENOLCK
|
|
|
|
| 62 |
no_message, // ENOMSG
|
| 63 |
no_protocol_option, // ENOPROTOOPT
|
| 64 |
no_space_on_device, // ENOSPC
|
|
|
|
| 65 |
no_such_device_or_address, // ENXIO
|
| 66 |
no_such_device, // ENODEV
|
| 67 |
no_such_file_or_directory, // ENOENT
|
| 68 |
no_such_process, // ESRCH
|
| 69 |
not_a_directory, // ENOTDIR
|
| 70 |
not_a_socket, // ENOTSOCK
|
|
|
|
| 71 |
not_connected, // ENOTCONN
|
| 72 |
not_enough_memory, // ENOMEM
|
| 73 |
not_supported, // ENOTSUP
|
| 74 |
operation_canceled, // ECANCELED
|
| 75 |
operation_in_progress, // EINPROGRESS
|
|
|
|
| 83 |
read_only_file_system, // EROFS
|
| 84 |
resource_deadlock_would_occur, // EDEADLK
|
| 85 |
resource_unavailable_try_again, // EAGAIN
|
| 86 |
result_out_of_range, // ERANGE
|
| 87 |
state_not_recoverable, // ENOTRECOVERABLE
|
|
|
|
| 88 |
text_file_busy, // ETXTBSY
|
| 89 |
timed_out, // ETIMEDOUT
|
| 90 |
too_many_files_open_in_system, // ENFILE
|
| 91 |
too_many_files_open, // EMFILE
|
| 92 |
too_many_links, // EMLINK
|
|
|
|
| 105 |
operator<<(basic_ostream<charT, traits>& os, const error_code& ec);
|
| 106 |
|
| 107 |
// [syserr.errcondition.nonmembers], non-member functions
|
| 108 |
error_condition make_error_condition(errc e) noexcept;
|
| 109 |
|
| 110 |
+
// [syserr.compare], comparison operator functions
|
| 111 |
bool operator==(const error_code& lhs, const error_code& rhs) noexcept;
|
| 112 |
bool operator==(const error_code& lhs, const error_condition& rhs) noexcept;
|
| 113 |
bool operator==(const error_condition& lhs, const error_condition& rhs) noexcept;
|
| 114 |
strong_ordering operator<=>(const error_code& lhs, const error_code& rhs) noexcept;
|
| 115 |
strong_ordering operator<=>(const error_condition& lhs, const error_condition& rhs) noexcept;
|
|
|
|
| 119 |
template<> struct hash<error_code>;
|
| 120 |
template<> struct hash<error_condition>;
|
| 121 |
|
| 122 |
// [syserr], system error support
|
| 123 |
template<class T>
|
| 124 |
+
constexpr bool is_error_code_enum_v = is_error_code_enum<T>::value;
|
| 125 |
template<class T>
|
| 126 |
+
constexpr bool is_error_condition_enum_v = is_error_condition_enum<T>::value;
|
| 127 |
}
|
| 128 |
```
|
| 129 |
|
| 130 |
+
The value of each `enum errc` enumerator is the same as the value of the
|
| 131 |
+
`<cerrno>` macro shown in the above synopsis. Whether or not the
|
| 132 |
`<system_error>` implementation exposes the `<cerrno>` macros is
|
| 133 |
unspecified.
|
| 134 |
|
| 135 |
+
The `is_error_code_enum` and `is_error_condition_enum` templates may be
|
| 136 |
specialized for program-defined types to indicate that such types are
|
| 137 |
+
eligible for `class error_code` and `class error_condition` implicit
|
| 138 |
conversions, respectively.
|
| 139 |
|