as_failure_lvalue.html 2.7 KB

1234567891011121314151617181920212223242526272829303132
  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>failure_type&lt;error_type, exception_type&gt; as_failure() const &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/types/basic_outcome/swap.html"><img src="../../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../../reference/types/basic_outcome.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/types/basic_outcome/as_failure_rvalue.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
  12. <div class="titlepage"><div><div><h1 style="clear: both"><code>failure_type&lt;error_type, exception_type&gt; as_failure() const &amp;</code></h1></div></div></div>
  13. <p>Return the output from free function <a href="../../../reference/functions/failure.html" class="api-reference"><code>auto failure(T &amp;&amp;, ...)</code></a>
  14. containing a copy of any errored and/or excepted state. The error and/or exception state is accessed using <a href="../../../reference/types/basic_outcome/assume_error_lvalue_const.html" class="api-reference"><code>const error_type &amp;assume_error() const &amp; noexcept</code></a>
  15. and <a href="../../../reference/types/basic_outcome/assume_exception_lvalue_const.html" class="api-reference"><code>const exception_type &amp;assume_exception() const &amp; noexcept</code></a>
  16. .</p>
  17. <p><em>Requires</em>: Always available.</p>
  18. <p><em>Complexity</em>: Whatever that of <code>error_type</code>&rsquo;s and/or <code>exception_type</code>&rsquo;s copy constructor is.</p>
  19. <p><em>Guarantees</em>: None.</p>
  20. </div><p><small>Last revised: February 01, 2019 at 15:52:57 UTC</small></p>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="../../../reference/types/basic_outcome/swap.html"><img src="../../../images/prev.png" alt="Prev"></a>
  24. <a accesskey="u" href="../../../reference/types/basic_outcome.html"><img src="../../../images/up.png" alt="Up"></a>
  25. <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/types/basic_outcome/as_failure_rvalue.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
  26. </html>