explicit_valueorerror_converting_constructor.html 3.0 KB

12345678910111213141516171819202122232425262728293031
  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>explicit basic_result(ValueOrError&lt;T, E&gt; &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/types/basic_result/implicit_error_condition_converting_constructor.html"><img src="../../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../../reference/types/basic_result.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_result/explicit_copy_converting_constructor.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
  12. <div class="titlepage"><div><div><h1 style="clear: both"><code>explicit basic_result(ValueOrError&lt;T, E&gt; &amp;&amp;)</code></h1></div></div></div>
  13. <p>Explicit converting constructor from <a href="../../../reference/concepts/valueorerror.html" class="api-reference"><code>ValueOrError&lt;T, E&gt;</code></a>
  14. concept matching types. Delegates to the <code>basic_result</code> move constructor.</p>
  15. <p><em>Requires</em>: <code>convert::</code><a href="../../../reference/converters/value_or_error.html" class="api-reference"><code>value_or_error&lt;T, U&gt;</code></a>
  16. has an available call operator, and if the input is a <code>basic_result</code> or <code>basic_outcome</code>, then <code>convert::value_or_error&lt;&gt;</code> has enabled those inputs for that <code>convert::value_or_error&lt;&gt;</code> specialisation.</p>
  17. <p><em>Complexity</em>: Same as for the copy or move constructor from the input&rsquo;s <code>.value()</code> or <code>.error()</code> respectively. Constexpr, triviality and noexcept of underlying operations is propagated.</p>
  18. <p><em>Guarantees</em>: If an exception is thrown during the operation, the object is left in a partially completed state, as per the normal rules for the same operation on a <code>struct</code>.</p>
  19. </div><p><small>Last revised: March 03, 2019 at 00:11:47 UTC</small></p>
  20. <hr>
  21. <div class="spirit-nav">
  22. <a accesskey="p" href="../../../reference/types/basic_result/implicit_error_condition_converting_constructor.html"><img src="../../../images/prev.png" alt="Prev"></a>
  23. <a accesskey="u" href="../../../reference/types/basic_result.html"><img src="../../../images/up.png" alt="Up"></a>
  24. <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/types/basic_result/explicit_copy_converting_constructor.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
  25. </html>