outcome_throw_as_system_error_with_payload_std_enum.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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>void outcome_throw_as_system_error_with_payload(ErrorCodeEnum &amp;&amp;) - 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"/>
  7. <link rel="icon" href="../../../images/favicon.ico" type="image/ico"/>
  8. <body><div class="spirit-nav">
  9. <a accesskey="p" href="../../../reference/functions/policy/outcome_throw_as_system_error_with_payload_boost_enum.html"><img src="../../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../../reference/functions/policy.html"><img src="../../../images/up.png" alt="Up"></a>
  11. <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/policy/outcome_throw_as_system_error_with_payload_boost_error_code.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
  12. <div class="titlepage"><div><div><h1 style="clear: both"><code>void outcome_throw_as_system_error_with_payload(ErrorCodeEnum &amp;&amp;)</code></h1></div></div></div>
  13. <p>A specialisation of <code>outcome_throw_as_system_error_with_payload()</code> for types where <code>std::is_error_code_enum&lt;ErrorCodeEnum&gt;</code> or <code>std::is_error_condition_enum&lt;ErrorCodeEnum&gt;</code> is true. This executes <a href="../../../reference/macros/throw_exception.html" class="api-reference"><code>BOOST_OUTCOME_THROW_EXCEPTION(expr)</code></a>
  14. with a
  15. <a href="https://en.cppreference.com/w/cpp/error/system_error" class="api-reference" target="_blank"><i class="fa fa-book" aria-hidden="true"></i> <code>std::system_error</code></a>
  16. constructed from the result of the ADL discovered free function <code>make_error_code(ErrorCodeEnum)</code>.</p>
  17. <p><em>Overridable</em>: Argument dependent lookup.</p>
  18. <p><em>Requires</em>: Either
  19. <a href="https://en.cppreference.com/w/cpp/error/error_code/is_error_code_enum" class="api-reference" target="_blank"><i class="fa fa-book" aria-hidden="true"></i> <code>std::is_error_code_enum&lt;T&gt;</code></a>
  20. or
  21. <a href="https://en.cppreference.com/w/cpp/error/error_condition/is_error_condition_enum" class="api-reference" target="_blank"><i class="fa fa-book" aria-hidden="true"></i> <code>std::is_error_condition_enum&lt;T&gt;</code></a>
  22. to be true for a decayed <code>ErrorCodeEnum</code>.</p>
  23. <p><em>Namespace</em>: <code>std</code></p>
  24. <p><em>Header</em>: <code>&lt;boost/outcome/std_result.hpp&gt;</code></p>
  25. </div><p><small>Last revised: February 01, 2019 at 15:52:57 UTC</small></p>
  26. <hr>
  27. <div class="spirit-nav">
  28. <a accesskey="p" href="../../../reference/functions/policy/outcome_throw_as_system_error_with_payload_boost_enum.html"><img src="../../../images/prev.png" alt="Prev"></a>
  29. <a accesskey="u" href="../../../reference/functions/policy.html"><img src="../../../images/up.png" alt="Up"></a>
  30. <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/policy/outcome_throw_as_system_error_with_payload_boost_error_code.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
  31. </html>