1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <!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>success_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/in_place_type_t.html"><img src="../../images/prev.png" alt="Prev"></a>
- <a accesskey="u" href="../../reference/types.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/aliases.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
- <div class="titlepage"><div><div><h1 style="clear: both"><code>success_type<T></code></h1></div></div></div>
- <p>Type sugar for constructing a successful result or outcome. Generally not constructed directly, but via the free function <a href="../../reference/functions/success.html" class="api-reference"><code>success(T &&)</code></a>
- . Detectable using <a href="../../reference/traits/is_success_type.html" class="api-reference"><code>is_success_type<T></code></a>
- .</p>
- <p>This is a regular wrapper type, with defaulted default, copy and move constructor, defaulted assignment, and defaulted destructor.</p>
- <p>A member type alias <code>value_type</code> indicates <code>T</code>.</p>
- <p>There is an explicit initialising constructor taking any type <code>U</code> which is not a <code>success_type<T></code>, and which will forward construct the contained <code>T</code> from that <code>U</code>.</p>
- <p>There is a <code>.value()</code> reference observer with the usual constexpr lvalue, const lvalue, rvalue and const rvalue overloads.</p>
- <p>There is a specialisation <code>success_type<void></code> which stores nothing and provides no <code>.value()</code> observers.</p>
- <p><em>Requires</em>: Nothing.</p>
- <p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE</code></p>
- <p><em>Header</em>: <code><boost/outcome/success_failure.hpp></code></p>
- </div><p><small>Last revised: January 21, 2019 at 18:00:41 UTC</small></p>
- <hr>
- <div class="spirit-nav">
- <a accesskey="p" href="../../reference/types/in_place_type_t.html"><img src="../../images/prev.png" alt="Prev"></a>
- <a accesskey="u" href="../../reference/types.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/aliases.html"><img src="../../images/next.png" alt="Next"></a></div></body>
- </html>
|