Namespaces
Variants
Views
Actions

std::future_errc

From cppreference.com
< cpp‎ | thread
Revision as of 05:22, 6 June 2012 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/thread/future 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 future_errc;
</td>

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

The scoped enumeration std::future_errc defines the error codes reported by std::future and related classes in std::future_error exception objects. Only four error codes are 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::future_errc are implicitly convertible to std::error_code.

Contents

Member constants

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

Helper classes

extends the type trait std::is_error_code_enum to identify future error codes
(class template)

Non-member functions

constructs a future error code
(function)
constructs a future error_condition
(function)

Example

See also

Template:cpp/error/dcl list error codeTemplate:cpp/error/dcl list error condition