1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3 <title>is_error_type<E> - Boost.Outcome documentation</title>
4 <link rel="stylesheet" href="../../css/boost.css" type="text/css">
5 <meta name="generator" content="Hugo 0.52 with Boostdoc theme">
6 <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
8 <link rel="icon" href="../../images/favicon.ico" type="image/ico"/>
9 <body><div class="spirit-nav">
10 <a accesskey="p" href="../../reference/traits/is_error_code_available.html"><img src="../../images/prev.png" alt="Prev"></a>
11 <a accesskey="u" href="../../reference/traits.html"><img src="../../images/up.png" alt="Up"></a>
12 <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/traits/is_error_type_enum.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
13 <div class="titlepage"><div><div><h1 style="clear: both"><code>is_error_type<E></code></h1></div></div></div>
14 <p>A customisable integral constant type true for <code>E</code> types which are to receive
15 error throwing no-value policies. Special weakened implicit construction enable
16 is available for integral <code>T</code> types when combined with <code>E</code> types in this
17 whitelist – this permits <code>boost_result<int, boost::system::errc::errc_t</code> to
18 retain its implicit constructors, despite the fact that <code>errc_t</code> as a C enum
19 has an implicit conversion to <code>int</code>.</p>
21 <p><em>Overridable</em>: By template specialisation into the <code>trait</code> namespace.</p>
23 <p><em>Default</em>: False. Specialisations to true exist for:</p>
26 <li><p><code><boost/outcome/boost_result.hpp></code></p>
29 <li><code>boost::system::error_code</code></li>
30 <li><code>boost::system::errc::errc_t</code></li>
31 <li><code>boost::exception_ptr</code></li>
34 <li><p><code><boost/outcome/std_result.hpp></code></p>
37 <li><code>std::error_code</code></li>
38 <li><code>std::errc</code></li>
39 <li><code>std::exception_ptr</code></li>
43 <p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE::trait</code></p>
45 <p><em>Header</em>: <code><boost/outcome/trait.hpp></code></p>
48 </div><p><small>Last revised: October 11, 2019 at 17:03:05 +0100</small></p>
50 <div class="spirit-nav">
51 <a accesskey="p" href="../../reference/traits/is_error_code_available.html"><img src="../../images/prev.png" alt="Prev"></a>
52 <a accesskey="u" href="../../reference/traits.html"><img src="../../images/up.png" alt="Up"></a>
53 <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/traits/is_error_type_enum.html"><img src="../../images/next.png" alt="Next"></a></div></body>