123456789101112131415161718192021222324252627282930313233343536 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>is_exception_ptr_available<T> - Boost.Outcome documentation</title>
- <link rel="stylesheet" href="../../css/boost.css" type="text/css">
- <meta name="generator" content="Hugo 0.52 with Boostdoc theme">
- <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
- <link rel="icon" href="../../images/favicon.ico" type="image/ico"/>
- <body><div class="spirit-nav">
- <a accesskey="p" href="../../reference/traits/is_error_type_enum.html"><img src="../../images/prev.png" alt="Prev"></a>
- <a accesskey="u" href="../../reference/traits.html"><img src="../../images/up.png" alt="Up"></a>
- <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/traits/is_failure_type.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
- <div class="titlepage"><div><div><h1 style="clear: both"><code>is_exception_ptr_available<T></code></h1></div></div></div>
- <p><code>::value</code> is true if an exception ptr can be constructed from a <code>T</code> e.g. if there exists an ADL discovered free function <code>make_exception_ptr(T)</code>.
- <code>::type</code> is the type that would result if <code>::value</code> is true, else <code>void</code>.</p>
- <p><em>Overridable</em>: By template specialisation into the <code>trait</code> namespace.</p>
- <p><em>Default</em>: True if <code>T</code> is an exception ptr, else to metaprogramming which performs the ADL discovery of <code>make_exception_ptr(T)</code>. Note that the STL defines an ADL discovered free function
- <a href="https://en.cppreference.com/w/cpp/error/make_exception_ptr" class="api-reference" target="_blank"><i class="fa fa-book" aria-hidden="true"></i> <code>std::make_exception_ptr(T)</code></a>
- . Thus this trait will pick up that free function.</p>
- <p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE::trait</code></p>
- <p><em>Header</em>: <code><boost/outcome/trait.hpp></code></p>
- <p><em>Variable alias</em>: <code>is_exception_ptr_available_v<T></code></p>
- </div><p><small>Last revised: October 10, 2019 at 18:14:56 +0100</small></p>
- <hr>
- <div class="spirit-nav">
- <a accesskey="p" href="../../reference/traits/is_error_type_enum.html"><img src="../../images/prev.png" alt="Prev"></a>
- <a accesskey="u" href="../../reference/traits.html"><img src="../../images/up.png" alt="Up"></a>
- <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/traits/is_failure_type.html"><img src="../../images/next.png" alt="Next"></a></div></body>
- </html>
|