implicit_success_move_constructor.html 2.8 KB

1234567891011121314151617181920212223242526272829
  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>basic_result(success_type&lt;T&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_success_copy_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/implicit_failure_copy_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>basic_result(success_type&lt;T&gt; &amp;&amp;)</code></h1></div></div></div>
  13. <p>Implicit value-from-success-type-sugar move constructor used to disambiguate the construction of the value type.
  14. Note that if <code>T = void</code>, <code>value_type</code> will be default constructed. Calls <a href="../../../reference/functions/hooks/hook_result_move_construction.html" class="api-reference"><code>void hook_result_move_construction(T *, U &amp;&amp;) noexcept</code></a>
  15. with <code>this</code> and <code>success_type&lt;T&gt; &amp;&amp;</code>.</p>
  16. <p><em>Requires</em>: <code>predicate::enable_compatible_conversion&lt;T, void, void&gt;</code> is true, or <code>T</code> is <code>void</code>.</p>
  17. <p><em>Complexity</em>: Same as for the <code>value_type</code> constructor which accepts <code>T</code>, or the <code>value_type</code> default constructor if <code>T</code> is <code>void</code>. Constexpr, triviality and noexcept of underlying operations is propagated.</p>
  18. </div><p><small>Last revised: January 21, 2019 at 18:00:41 UTC</small></p>
  19. <hr>
  20. <div class="spirit-nav">
  21. <a accesskey="p" href="../../../reference/types/basic_result/implicit_success_copy_constructor.html"><img src="../../../images/prev.png" alt="Prev"></a>
  22. <a accesskey="u" href="../../../reference/types/basic_result.html"><img src="../../../images/up.png" alt="Up"></a>
  23. <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/types/basic_result/implicit_failure_copy_constructor.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
  24. </html>