Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/io/io errc"

From cppreference.com
< cpp‎ | io
(reword)
(it's a class)
Line 18: Line 18:
 
===Helper classes===
 
===Helper classes===
 
{{dcl list begin}}
 
{{dcl list begin}}
{{dcl list tfun | cpp/io/is_error_code_enum  | title=is_error_code_enum{{dcl small|<std::io_errc>}}| notes={{mark c++11}} | extends the type trait {{cpp|std::is_error_code_enum}} to identify iostream error codes}}
+
{{dcl list tclass | cpp/io/is_error_code_enum  | title=is_error_code_enum{{dcl small|<std::io_errc>}}| notes={{mark c++11}} | extends the type trait {{cpp|std::is_error_code_enum}} to identify iostream error codes}}
 
{{dcl list end}}
 
{{dcl list end}}
  

Revision as of 10:06, 28 March 2012

Template:cpp/io/io errc/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <ios>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
enum class io_errc;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

The scoped enumeration std::io_errc defines the error codes reported by I/O streams in Template:cpp 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 Template:cpp.

Contents

Member constants

Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list end

Helper classes

extends the type trait Template:cpp to identify iostream error codes
(class template)

Non-member functions

constructs an iostream error code
(function)
constructs an iostream error_condition
(function)

Example

Template:example cpp

See also

Template:cpp/error/system error/dcl list error codeTemplate:cpp/error/system error/dcl list error conditionTemplate:cpp/io/ios base/dcl list failure