12345678910111213141516171819202122232425262728293031323334353637383940 |
- <!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>void override_outcome_exception(basic_outcome<T, EC, EP, NoValuePolicy> *, U &&) noexcept - 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/functions/hooks/hook_result_move_construction.html"><img src="../../../images/prev.png" alt="Prev"></a>
- <a accesskey="u" href="../../../reference/functions/hooks.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/functions/hooks/set_spare_storage.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
- <div class="titlepage"><div><div><h1 style="clear: both"><code>void override_outcome_exception(basic_outcome<T, EC, EP, NoValuePolicy> *, U &&) noexcept</code></h1></div></div></div>
- <p>Overrides the exception to something other than what was constructed. You <em>almost certainly</em> never
- want to use this function. A much better way of overriding the exception returned is to create
- a custom no-value policy which lazily synthesises a custom exception object at the point of need.</p>
- <p>The only reason that this function exists is because some people have very corner case needs
- where a custom no-value policy can’t be used, and where move-constructing a new <code>outcome</code> from
- an old <code>outcome</code> with the exception state replaced isn’t possible (e.g. when the types are
- non-copyable and non-moveable).</p>
- <p>Unless you are in a situation where no other viable alternative exists, do not use this function.</p>
- <p><em>Overridable</em>: Not overridable.</p>
- <p><em>Requires</em>: Nothing.</p>
- <p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE::hooks</code></p>
- <p><em>Header</em>: <code><boost/outcome/basic_outcome.hpp></code></p>
- </div><p><small>Last revised: January 30, 2019 at 16:16:10 UTC</small></p>
- <hr>
- <div class="spirit-nav">
- <a accesskey="p" href="../../../reference/functions/hooks/hook_result_move_construction.html"><img src="../../../images/prev.png" alt="Prev"></a>
- <a accesskey="u" href="../../../reference/functions/hooks.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/functions/hooks/set_spare_storage.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
- </html>
|