1234567891011121314151617181920212223242526272829 |
- <!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>basic_result(const failure_type<T> &) - 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/types/basic_result/implicit_failure_move_constructor.html"><img src="../../../images/prev.png" alt="Prev"></a>
- <a accesskey="u" href="../../../reference/types/basic_result.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/types/basic_result/implicit_failure_make_error_code_move_constructor.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
- <div class="titlepage"><div><div><h1 style="clear: both"><code>basic_result(const failure_type<T> &)</code></h1></div></div></div>
- <p>Implicit error-from-failure-type-sugar copy constructor used to disambiguate the construction of the error type.
- Note that if <code>T = void</code>, <code>error_type</code> will be default constructed. Calls <a href="../../../reference/functions/hooks/hook_result_copy_construction.html" class="api-reference"><code>void hook_result_copy_construction(T *, U &&) noexcept</code></a>
- with <code>this</code> and <code>const failure_type<T> &</code>.</p>
- <p><em>Requires</em>: <code>predicate::enable_make_error_code_compatible_conversion<void, T, void></code> is true, or <code>T</code> is <code>void</code>.</p>
- <p><em>Complexity</em>: Same as for the <code>error_type</code> constructor which accepts <code>T</code>, or the <code>error_type</code> default constructor if <code>T</code> is <code>void</code>. Constexpr, triviality and noexcept of underlying operations is propagated.</p>
- </div><p><small>Last revised: October 10, 2019 at 18:14:56 +0100</small></p>
- <hr>
- <div class="spirit-nav">
- <a accesskey="p" href="../../../reference/types/basic_result/implicit_failure_move_constructor.html"><img src="../../../images/prev.png" alt="Prev"></a>
- <a accesskey="u" href="../../../reference/types/basic_result.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/types/basic_result/implicit_failure_make_error_code_move_constructor.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
- </html>
|