basic_outcome.html 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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_outcome&lt;T, EC, EP, NoValuePolicy&gt; - 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.html"><img src="../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../reference/types.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/default.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_outcome&lt;T, EC, EP, NoValuePolicy&gt;</code></h1></div></div></div>
  13. <div class="toc"><dl class="toc">
  14. <dt>
  15. <dd><dl>
  16. <dt>
  17. <dd><dl>
  18. <dt><a href="#design-rationale">Design rationale</a></dt>
  19. <dt><a href="#public-member-type-aliases">Public member type aliases</a></dt>
  20. <dt><a href="#protected-member-predicate-booleans">Protected member predicate booleans</a>
  21. <dd><dl>
  22. <dt><a href="#summary-of-standard-requirements-provided-https-en-cppreference-com-w-cpp-named-req">Summary of <a href="https://en.cppreference.com/w/cpp/named_req">standard requirements provided</a></a></dt>
  23. </dl></dd></dt>
  24. <dt><a href="#public-member-functions">Public member functions</a>
  25. <dd><dl>
  26. <dt><a href="#disabling-constructors">Disabling constructors</a></dt>
  27. </dl></dd></dt>
  28. </dl></dd></dt>
  29. </dl></dd></dt>
  30. </dl>
  31. </div>
  32. <p>A type carrying one of (i) a successful <code>T</code> (ii) a disappointment <code>EC</code> (iii) a failure <code>EP</code> (iv) both a disappointment <code>EC</code> and a failure <code>EP</code>, with <code>NoValuePolicy</code> specifying what to do if one tries to read state which isn&rsquo;t there. Any one, two, or all of <code>T</code>, <code>EC</code> and <code>EP</code> can be <code>void</code> to indicate no value for that state is present. Detectable using <a href="../../reference/traits/is_basic_outcome.html" class="api-reference"><code>is_basic_outcome&lt;T&gt;</code></a>
  33. .</p>
  34. <p><em>Requires</em>: Concept requirements if C++ 20, else static asserted:</p>
  35. <ul>
  36. <li>That trait <a href="../../reference/traits/type_can_be_used_in_basic_result.html" class="api-reference"><code>type_can_be_used_in_basic_result&lt;R&gt;</code></a>
  37. is true for <code>T</code>, <code>EC</code> and <code>EP</code>.</li>
  38. <li>That either <code>EC</code> is <code>void</code> or <code>DefaultConstructible</code>.</li>
  39. <li>That either <code>EP</code> is <code>void</code> or <code>DefaultConstructible</code>.</li>
  40. </ul>
  41. <p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE</code></p>
  42. <p><em>Header</em>: <code>&lt;boost/outcome/basic_outcome.hpp&gt;</code></p>
  43. <p><em>Inclusions</em>: The very lightest weight of C and C++ header files:</p>
  44. <ol>
  45. <li><code>&lt;cstdint&gt;</code></li>
  46. <li><code>&lt;initializer_list&gt;</code></li>
  47. <li><code>&lt;iosfwd&gt;</code></li>
  48. <li><code>&lt;new&gt;</code></li>
  49. <li><code>&lt;type_traits&gt;</code></li>
  50. <li>If <a href="../../reference/macros/in_place_type.html" class="api-reference"><code>BOOST_OUTCOME_USE_STD_IN_PLACE_TYPE</code></a>
  51. is <code>1</code>, <code>&lt;utility&gt;</code> (defaults to <code>1</code> for C++ 17 or later only)</li>
  52. <li>If C++ exceptions disabled and <code>BOOST_OUTCOME_DISABLE_EXECINFO</code> undefined only (used to print stack backtraces on &ldquo;exception throw&rdquo;):
  53. <ol>
  54. <li><code>&lt;sal.h&gt;</code> (Windows only)</li>
  55. <li><code>&lt;stddef.h&gt;</code> (Windows only)</li>
  56. <li><code>&lt;string.h&gt;</code> (Windows only)</li>
  57. <li><code>&lt;execinfo.h&gt;</code> (POSIX only)</li>
  58. </ol></li>
  59. <li><code>&lt;cstdio&gt;</code></li>
  60. <li><code>&lt;cstdlib&gt;</code></li>
  61. <li><code>&lt;cassert&gt;</code></li>
  62. </ol>
  63. <p>This very light weight set of inclusion dependencies makes basic outcome suitable for use in global header files of very large C++ codebases.</p>
  64. <h3 id="design-rationale">Design rationale</h3>
  65. <p><code>basic_outcome</code> extends <a href="../../reference/types/basic_result.html" class="api-reference"><code>basic_result&lt;T, E, NoValuePolicy&gt;</code></a>
  66. with a third state to transport,
  67. conventionally (but not necessarily) some sort of &ldquo;abort&rdquo; or &ldquo;exceptional&rdquo; state which a function can
  68. return to indicate that not only did the operation fail, but it did so <em>catastrophically</em> i.e. please
  69. abort any attempt to retry the operation.</p>
  70. <p>A perfect alternative is to throw a C++ exception for the abort code path, and indeed most programs
  71. ought to do exactly that instead of using <code>basic_outcome</code>. However there are a number of use cases
  72. where choosing <code>basic_outcome</code> shines:</p>
  73. <ol>
  74. <li>Where C++ exceptions or RTTI is not available, but the ability to fail catastrophically without
  75. terminating the program is important.</li>
  76. <li>Where deterministic behaviour is required even in the catastrophic failure situation.</li>
  77. <li>In unit test suites of code using Outcome it is extremely convenient to accumulate test failures
  78. into a <code>basic_outcome</code> for later reporting. A similar convenience applies to RPC situations, where
  79. C++ exception throws need to be accumulated for reporting back to the initiating endpoint.</li>
  80. <li>Where a function is &ldquo;dual use deterministic&rdquo; i.e. it can be used deterministically, in which case
  81. one switches control flow based on <code>.error()</code>, or it can be used non-deterministically by throwing
  82. an exception perhaps carrying a custom payload.</li>
  83. </ol>
  84. <h3 id="public-member-type-aliases">Public member type aliases</h3>
  85. <ul>
  86. <li><code>value_type</code> is <code>T</code>.</li>
  87. <li><code>error_type</code> is <code>EC</code>.</li>
  88. <li><code>exception_type</code> is <code>EP</code>.</li>
  89. <li><code>value_type_if_enabled</code> is <code>T</code> if construction from <code>T</code> is available, else it is a usefully named unusable internal type.</li>
  90. <li><code>error_type_if_enabled</code> is <code>EC</code> if construction from <code>EC</code> is available, else it is a usefully named unusable internal type.</li>
  91. <li><code>exception_type_if_enabled</code> is <code>EP</code> if construction from <code>EP</code> is available, else it is a usefully named unusable internal type.</li>
  92. <li><code>rebind&lt;A, B = EC, C = EP, D = NoValuePolicy&gt;</code> is <code>basic_outcome&lt;A, B, C, D&gt;</code>.</li>
  93. </ul>
  94. <h3 id="protected-member-predicate-booleans">Protected member predicate booleans</h3>
  95. <ul>
  96. <li><p><code>predicate::constructors_enabled</code> is constexpr boolean true if:</p>
  97. <ol>
  98. <li>Decayed <code>value_type</code> and decayed <code>error_type</code> are not the same type, or both are <code>void</code>.</li>
  99. <li>Decayed <code>value_type</code> and decayed <code>exception_type</code> are not the same type, or both are <code>void</code>.</li>
  100. <li>Decayed <code>error_type</code> and decayed <code>exception_type</code> are not the same type, or both are <code>void</code>.</li>
  101. </ol></li>
  102. <li><p><code>predicate::implicit_constructors_enabled</code> is constexpr boolean true if:</p>
  103. <ol>
  104. <li><code>predicate::constructors_enabled</code> is true.</li>
  105. <li>Trait <a href="../../reference/traits/is_error_type.html" class="api-reference"><code>is_error_type&lt;E&gt;</code></a>
  106. is not true for both decayed <code>value_type</code> and decayed <code>error_type</code> at the same time.</li>
  107. <li><code>value_type</code> is not implicitly constructible from <code>error_type</code> and <code>error_type</code> is not implicitly constructible from <code>value_type</code>.<br>OR<br>trait <a href="../../reference/traits/is_error_type.html" class="api-reference"><code>is_error_type&lt;E&gt;</code></a>
  108. is true for decayed <code>error_type</code> and <code>error_type</code> is not implicitly constructible from <code>value_type</code> and <code>value_type</code> is an integral type.</li>
  109. <li><code>value_type</code> is not implicitly constructible from <code>exception_type</code>.</li>
  110. <li><code>error_type</code> is not implicitly constructible from <code>exception_type</code>.</li>
  111. <li><code>exception_type</code> is not implicitly constructible from <code>value_type</code>.</li>
  112. <li><code>exception_type</code> is not implicitly constructible from <code>error_type</code>.</li>
  113. </ol></li>
  114. <li><p><code>predicate::enable_value_converting_constructor&lt;A&gt;</code> is constexpr boolean true if:</p>
  115. <ol>
  116. <li><code>predicate::constructors_enabled</code> is true.</li>
  117. <li>Decayed <code>A</code> is not this <code>basic_outcome</code> type.</li>
  118. <li><code>predicate::implicit_constructors_enabled</code> is true.</li>
  119. <li>Decayed <code>A</code> is not an <code>in_place_type_t</code>.</li>
  120. <li>Trait <a href="../../reference/traits/is_error_type_enum.html" class="api-reference"><code>is_error_type_enum&lt;E, Enum&gt;</code></a>
  121. is false for <code>error_type</code> and decayed <code>A</code>.</li>
  122. <li><code>value_type</code> is implicitly constructible from <code>A</code> and <code>error_type</code> is not implicitly constructible from <code>A</code>.<br>OR<br><code>value_type</code> is the exact same type as decayed <code>A</code> and <code>value_type</code> is implicitly constructible from <code>A</code>.</li>
  123. <li><code>exception_type</code> is not implicitly constructible from <code>A</code>.</li>
  124. </ol></li>
  125. <li><p><code>predicate::enable_error_converting_constructor&lt;A&gt;</code> is constexpr boolean true if:</p>
  126. <ol>
  127. <li><code>predicate::constructors_enabled</code> is true.</li>
  128. <li>Decayed <code>A</code> is not this <code>basic_outcome</code> type.</li>
  129. <li><code>predicate::implicit_constructors_enabled</code> is true.</li>
  130. <li>Decayed <code>A</code> is not an <code>in_place_type_t</code>.</li>
  131. <li>Trait <a href="../../reference/traits/is_error_type_enum.html" class="api-reference"><code>is_error_type_enum&lt;E, Enum&gt;</code></a>
  132. is false for <code>error_type</code> and decayed <code>A</code>.</li>
  133. <li><code>value_type</code> is not implicitly constructible from <code>A</code> and <code>error_type</code> is implicitly constructible from <code>A</code>.<br>OR<br><code>error_type</code> is the exact same type as decayed <code>A</code> and <code>error_type</code> is implicitly constructible from <code>A</code>.</li>
  134. <li><code>exception_type</code> is not implicitly constructible from <code>A</code>.</li>
  135. </ol></li>
  136. <li><p><code>predicate::enable_error_condition_converting_constructor&lt;ErrorCondEnum&gt;</code> is constexpr boolean true if:</p>
  137. <ol>
  138. <li><code>predicate::constructors_enabled</code> is true.</li>
  139. <li>Decayed <code>ErrorCondEnum</code> is not this <code>basic_outcome</code> type.</li>
  140. <li>Decayed <code>ErrorCondEnum</code> is not an <code>in_place_type_t</code>.</li>
  141. <li>Trait <a href="../../reference/traits/is_error_type_enum.html" class="api-reference"><code>is_error_type_enum&lt;E, Enum&gt;</code></a>
  142. is true for <code>error_type</code> and decayed <code>ErrorCondEnum</code>.</li>
  143. <li><code>exception_type</code> is not implicitly constructible from <code>ErrorCondEnum</code>.</li>
  144. </ol></li>
  145. <li><p><code>predicate::enable_exception_converting_constructor&lt;A&gt;</code> is constexpr boolean true if:</p>
  146. <ol>
  147. <li><code>predicate::constructors_enabled</code> is true.</li>
  148. <li>Decayed <code>A</code> is not this <code>basic_outcome</code> type.</li>
  149. <li><code>predicate::implicit_constructors_enabled</code> is true.</li>
  150. <li>Decayed <code>A</code> is not an <code>in_place_type_t</code>.</li>
  151. <li><code>value_type</code> is not implicitly constructible from <code>A</code>.</li>
  152. <li><code>error_type</code> is not implicitly constructible from <code>A</code>.</li>
  153. <li><code>exception_type</code> is implicitly constructible from <code>A</code>.</li>
  154. </ol></li>
  155. <li><p><code>predicate::enable_error_exception_converting_constructor&lt;A, B&gt;</code> is constexpr boolean true if:</p>
  156. <ol>
  157. <li><code>predicate::constructors_enabled</code> is true.</li>
  158. <li>Decayed <code>A</code> is not this <code>basic_outcome</code> type.</li>
  159. <li><code>predicate::implicit_constructors_enabled</code> is true.</li>
  160. <li>Decayed <code>A</code> is not an <code>in_place_type_t</code>.</li>
  161. <li><code>value_type</code> is not implicitly constructible from <code>A</code>.</li>
  162. <li><code>error_type</code> is implicitly constructible from <code>A</code>.</li>
  163. <li><code>value_type</code> is not implicitly constructible from <code>B</code>.</li>
  164. <li><code>exception_type</code> is implicitly constructible from <code>B</code>.</li>
  165. </ol></li>
  166. <li><p><code>predicate::enable_compatible_conversion&lt;A, B, C, D&gt;</code> is constexpr boolean true if:</p>
  167. <ol>
  168. <li><code>predicate::constructors_enabled</code> is true.</li>
  169. <li><code>basic_outcome&lt;A, B, C, D&gt;</code> is not this <code>basic_outcome</code> type.</li>
  170. <li><code>A</code> is <code>void</code> OR <code>value_type</code> is explicitly constructible from <code>A</code>.</li>
  171. <li><code>B</code> is <code>void</code> OR <code>error_type</code> is explicitly constructible from <code>B</code>.</li>
  172. <li><code>C</code> is <code>void</code> OR <code>exception_type</code> is explicitly constructible from <code>C</code>.</li>
  173. </ol></li>
  174. <li><p><code>predicate::enable_make_error_code_compatible_conversion&lt;A, B, C, D&gt;</code> is constexpr boolean true if:</p>
  175. <ol>
  176. <li><code>predicate::constructors_enabled</code> is true.</li>
  177. <li><code>basic_outcome&lt;A, B, C, D&gt;</code> is not this <code>basic_outcome</code> type.</li>
  178. <li>Trait &#34;/home/travis/build/ned14/boost-outcome/doc/src/content/reference/types/basic_outcome/_index.md:138:14&#34;: API reference page for &#39;is_error_code_available&lt;E&gt;&#39; not found, please use an identifier wholly contained in a page title
  179. <b>API NOT FOUND IN DOCS <code>is_error_code_available&lt;E&gt;</code></b>
  180. is true for decayed <code>error_type</code>.</li>
  181. <li><code>predicate::enable_compatible_conversion&lt;A, B, C, D&gt;</code> is not true.</li>
  182. <li><code>A</code> is <code>void</code> OR <code>value_type</code> is explicitly constructible from <code>A</code>.</li>
  183. <li><code>error_type</code> is explicitly constructible from <code>make_error_code(B)</code>.</li>
  184. <li><code>C</code> is <code>void</code> OR <code>exception_type</code> is explicitly constructible from <code>C</code>.</li>
  185. </ol></li>
  186. <li><p><code>predicate::enable_inplace_value_constructor&lt;Args...&gt;</code> is constexpr boolean true if:</p>
  187. <ol>
  188. <li><code>predicate::constructors_enabled</code> is true.</li>
  189. <li><code>value_type</code> is <code>void</code> OR <code>value_type</code> is explicitly constructible from <code>Args...</code>.</li>
  190. </ol></li>
  191. <li><p><code>predicate::enable_inplace_error_constructor&lt;Args...&gt;</code> is constexpr boolean true if:</p>
  192. <ol>
  193. <li><code>predicate::constructors_enabled</code> is true.</li>
  194. <li><code>error_type</code> is <code>void</code> OR <code>error_type</code> is explicitly constructible from <code>Args...</code>.</li>
  195. </ol></li>
  196. <li><p><code>predicate::enable_inplace_exception_constructor&lt;Args...&gt;</code> is constexpr boolean true if:</p>
  197. <ol>
  198. <li><code>predicate::constructors_enabled</code> is true.</li>
  199. <li><code>exception_type</code> is <code>void</code> OR <code>exception_type</code> is explicitly constructible from <code>Args...</code>.</li>
  200. </ol></li>
  201. <li><p><code>predicate::enable_inplace_value_error_exception_constructor&lt;Args...&gt;</code> is constexpr boolean true if:</p>
  202. <ol>
  203. <li><code>predicate::constructors_enabled</code> is true.</li>
  204. <li><code>predicate::implicit_constructors_enabled</code> is true.</li>
  205. <li>Exactly one of <code>value_type</code> is explicitly constructible from <code>Args...</code>, or <code>error_type</code> is explicitly constructible from <code>Args...</code>, or <code>exception_type</code> is explicitly constructible
  206. from <code>Args...</code>.</li>
  207. </ol></li>
  208. </ul>
  209. <h4 id="summary-of-standard-requirements-provided-https-en-cppreference-com-w-cpp-named-req">Summary of <a href="https://en.cppreference.com/w/cpp/named_req">standard requirements provided</a></h4>
  210. <ul>
  211. <li><del><code>DefaultConstructible</code></del>, always deleted to force user to choose valued or errored or excepted for every outcome instanced.</li>
  212. <li><code>MoveConstructible</code>, if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> implement move constructors.</li>
  213. <li><code>CopyConstructible</code>, if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> implement copy constructors.</li>
  214. <li><code>MoveAssignable</code>, if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> implement move constructors and move assignment.</li>
  215. <li><code>CopyAssignable</code>, if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> implement copy constructors and copy assignment.</li>
  216. <li><code>Destructible</code>.</li>
  217. <li><code>TriviallyCopyable</code>, if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> are trivially copyable.</li>
  218. <li><code>TrivialType</code>, if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> are trivial types.</li>
  219. <li><code>LiteralType</code>, if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> are literal types.</li>
  220. <li><p><del><code>StandardLayoutType</code></del>. It is implementation defined if <code>basic_outcome</code> can be used by C.
  221. However all of the three major compilers MSVC, GCC and clang implement C layout of <code>basic_outcome</code> as follows:</p>
  222. <div class="highlight"><pre class="chroma"><code class="language-c++" data-lang="c++"><span class="k">struct</span> <span class="n">outcome_layout</span> <span class="p">{</span>
  223. <span class="k">struct</span> <span class="n">result_layout</span> <span class="p">{</span>
  224. <span class="n">value_type</span> <span class="n">value</span><span class="p">;</span>
  225. <span class="kt">unsigned</span> <span class="kt">int</span> <span class="n">flags</span><span class="p">;</span>
  226. <span class="n">error_type</span> <span class="n">error</span><span class="p">;</span>
  227. <span class="p">};</span>
  228. <span class="n">exception_type</span> <span class="n">exception</span><span class="p">;</span>
  229. <span class="p">};</span>
  230. </code></pre></div>
  231. <p>If you choose standard layout <code>value_type</code>, <code>error_type</code> and <code>exception_type</code>, <code>basic_outcome</code>
  232. works fine from C on MSVC, GCC and clang.</p></li>
  233. <li><p><code>EqualityComparable</code>, if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> implement equality comparisons with one another.</p></li>
  234. <li><p><del><code>LessThanComparable</code></del>, not implemented due to availability of implicit conversions from <code>value_type</code>, <code>error_type</code> and <code>exception_type</code>, this can cause major surprise (i.e. hard to diagnose bugs), so we don&rsquo;t implement these at all.
  235. ~ <code>Swappable</code></p></li>
  236. <li><p><del><code>Hash</code></del>, not implemented as a generic implementation of a unique hash for non-valued items which are unequal would require a dependency on RTTI being enabled.</p></li>
  237. </ul>
  238. <p>Thus <code>basic_outcome</code> meets the <code>Regular</code> concept if all of <code>value_type</code>, <code>error_type</code> and <code>exception_type</code> are <code>Regular</code>, except for the lack of a default constructor. Often where one needs a default constructor, wrapping <code>basic_outcome</code> into
  239. <a href="https://en.cppreference.com/w/cpp/utility/optional" class="api-reference" target="_blank"><i class="fa fa-book" aria-hidden="true"></i> <code>std::optional&lt;T&gt;</code></a>
  240. will suffice.</p>
  241. <h3 id="public-member-functions">Public member functions</h3>
  242. <h4 id="disabling-constructors">Disabling constructors</h4>
  243. <ol class="children children-li"><li>
  244. <a href="../../reference/types/basic_outcome/disabling_catchall.html" ><code>basic_outcome(Args...) = delete</code></a>
  245. <p>Disabling catchall constructor used to give useful diagnostic error when trying to use non-inplace constructors when <code>predicate::constructors_enabled</code> is false.</p><li>
  246. <a href="../../reference/types/basic_outcome/disabling_implicit_constructor.html" ><code>basic_outcome(X &amp;&amp;) = delete</code></a>
  247. <p>Disabling implicit constructor used to give useful diagnostic error when trying to use implicit constructors when <code>predicate::implicit_constructors_enabled</code> is false.</p></li></ol>
  248. <h4 id="copy-and-move-constructors-and-assignment-and-destructor">Copy and move constructors and assignment, and destructor</h4>
  249. <ol class="children children-li"><li>
  250. <a href="../../reference/types/basic_outcome/default.html" ><code>basic_outcome() = delete</code></a>
  251. <p>The default constructor (disabled).</p><li>
  252. <a href="../../reference/types/basic_outcome/move_constructor.html" ><code>basic_outcome(basic_outcome &amp;&amp;)</code></a>
  253. <p>Move constructor. Constexpr, triviality and noexcept propagating.</p><li>
  254. <a href="../../reference/types/basic_outcome/copy_constructor.html" ><code>basic_outcome(const basic_outcome &amp;)</code></a>
  255. <p>Copy constructor. Constexpr, triviality and noexcept propagating.</p><li>
  256. <a href="../../reference/types/basic_outcome/move_assignment.html" ><code>basic_outcome &amp;operator=(basic_outcome &amp;&amp;)</code></a>
  257. <p>Move assignment. Constexpr, triviality and noexcept propagating.</p><li>
  258. <a href="../../reference/types/basic_outcome/copy_assignment.html" ><code>basic_outcome &amp;operator=(const basic_outcome &amp;)</code></a>
  259. <p>Copy assignment. Constexpr, triviality and noexcept propagating.</p><li>
  260. <a href="../../reference/types/basic_outcome/destructor.html" ><code>~basic_outcome()</code></a>
  261. <p>Destructor. Constexpr, triviality and noexcept propagating.</p></li></ol>
  262. <h4 id="converting-constructors">Converting constructors</h4>
  263. <ol class="children children-li"><li>
  264. <a href="../../reference/types/basic_outcome/implicit_value_converting_constructor.html" ><code>basic_outcome(R &amp;&amp;)</code></a>
  265. <p>Implicit <code>value_type</code> constructor. Available if <code>predicate::enable_value_converting_constructor&lt;R&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  266. <a href="../../reference/types/basic_outcome/implicit_error_converting_constructor.html" ><code>basic_outcome(S &amp;&amp;)</code></a>
  267. <p>Implicit <code>error_type</code> constructor. Available if <code>predicate::enable_error_converting_constructor&lt;S&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  268. <a href="../../reference/types/basic_outcome/implicit_error_condition_converting_constructor.html" ><code>basic_outcome(ErrorCondEnum &amp;&amp;)</code></a>
  269. <p>Implicit <code>error_type</code> from <code>ErrorCondEnum</code> constructor. Available if <code>predicate::enable_error_condition_converting_constructor&lt;ErrorCondEnum&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  270. <a href="../../reference/types/basic_outcome/implicit_exception_converting_constructor.html" ><code>basic_outcome(P &amp;&amp;)</code></a>
  271. <p>Implicit <code>exception_type</code> constructor. Available if <code>predicate::enable_exception_converting_constructor&lt;P&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  272. <a href="../../reference/types/basic_outcome/implicit_error_exception_converting_constructor.html" ><code>basic_outcome(S &amp;&amp;, P &amp;&amp;)</code></a>
  273. <p>Implicit <code>error_type</code> + <code>exception_type</code> constructor. Available if <code>predicate::enable_error_exception_converting_constructor&lt;S, P&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  274. <a href="../../reference/types/basic_outcome/explicit_valueorerror_converting_constructor.html" ><code>explicit basic_outcome(ValueOrError&lt;T, E&gt; &amp;&amp;)</code></a>
  275. <p>Explicit converting constructor from <code>ValueOrError&lt;T, E&gt;</code> concept matching types. Available if <code>convert::value_or_error&lt;&gt;</code> permits it. Constexpr, triviality and noexcept propagating.</p><li>
  276. <a href="../../reference/types/basic_outcome/explicit_copy_converting_constructor.html" ><code>explicit basic_outcome(const basic_outcome&lt;A, B, C, D&gt; &amp;)</code></a>
  277. <p>Explicit converting copy constructor from compatible <code>basic_outcome</code>. Available if <code>predicate::enable_compatible_conversion&lt;A, B, C, D&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  278. <a href="../../reference/types/basic_outcome/explicit_move_converting_constructor.html" ><code>explicit basic_outcome(basic_outcome&lt;A, B, C, D&gt; &amp;&amp;)</code></a>
  279. <p>Explicit converting move constructor from compatible <code>basic_outcome</code>. Available if <code>predicate::enable_compatible_conversion&lt;A, B, C, D&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  280. <a href="../../reference/types/basic_outcome/explicit_result_copy_converting_constructor.html" ><code>explicit basic_outcome(const basic_result&lt;A, B, C&gt; &amp;)</code></a>
  281. <p>Explicit converting copy constructor from compatible <code>basic_result</code>. Available if <code>predicate::enable_compatible_conversion&lt;A, B, void, C&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  282. <a href="../../reference/types/basic_outcome/explicit_result_move_converting_constructor.html" ><code>explicit basic_outcome(basic_result&lt;A, B, C&gt; &amp;&amp;)</code></a>
  283. <p>Explicit converting move constructor from compatible <code>basic_result</code>. Available if <code>predicate::enable_compatible_conversion&lt;A, B, void, C&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  284. <a href="../../reference/types/basic_outcome/explicit_result_make_error_code_copy_converting_constructor.html" ><code>explicit basic_outcome(const basic_result&lt;A, B, C&gt; &amp;)</code></a>
  285. <p>Explicit converting copy constructor from compatible <code>basic_result</code>. Available if <code>predicate::enable_make_error_code_compatible_conversion&lt;A, B, void, C&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  286. <a href="../../reference/types/basic_outcome/explicit_result_make_error_code_move_converting_constructor.html" ><code>explicit basic_outcome(basic_result&lt;A, B, C&gt; &amp;&amp;)</code></a>
  287. <p>Explicit converting move constructor from compatible <code>basic_result</code>. Available if <code>predicate::enable_make_error_code_compatible_conversion&lt;A, B, void, C&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p></li></ol>
  288. <h4 id="inplace-constructors">Inplace constructors</h4>
  289. <ol class="children children-li"><li>
  290. <a href="../../reference/types/basic_outcome/explicit_inplace_value_constructor.html" ><code>explicit basic_outcome(in_place_type_t&lt;value_type_if_enabled&gt;, Args ...)</code></a>
  291. <p>Explicit inplace value constructor. Available if <code>predicate::enable_inplace_value_constructor&lt;Args ...&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  292. <a href="../../reference/types/basic_outcome/explicit_inplace_value_constructor_il.html" ><code>explicit basic_outcome(in_place_type_t&lt;value_type_if_enabled&gt;, std::initializer_list&lt;U&gt;, Args ...)</code></a>
  293. <p>Explicit inplace value constructor. Available if <code>predicate::enable_inplace_value_constructor&lt;std::initializer_list&lt;U&gt;, Args ...&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  294. <a href="../../reference/types/basic_outcome/explicit_inplace_error_constructor.html" ><code>explicit basic_outcome(in_place_type_t&lt;error_type_if_enabled&gt;, Args ...)</code></a>
  295. <p>Explicit inplace error constructor. Available if <code>predicate::enable_inplace_error_constructor&lt;Args ...&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  296. <a href="../../reference/types/basic_outcome/explicit_inplace_error_constructor_il.html" ><code>explicit basic_outcome(in_place_type_t&lt;error_type_if_enabled&gt;, std::initializer_list&lt;U&gt;, Args ...)</code></a>
  297. <p>Explicit inplace error constructor. Available if <code>predicate::enable_inplace_error_constructor&lt;std::initializer_list&lt;U&gt;, Args ...&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  298. <a href="../../reference/types/basic_outcome/explicit_inplace_exception_constructor.html" ><code>explicit basic_outcome(in_place_type_t&lt;exception_type_if_enabled&gt;, Args ...)</code></a>
  299. <p>Explicit inplace exception constructor. Available if <code>predicate::enable_inplace_exception_constructor&lt;Args ...&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  300. <a href="../../reference/types/basic_outcome/explicit_inplace_exception_constructor_il.html" ><code>explicit basic_outcome(in_place_type_t&lt;exception_type_if_enabled&gt;, std::initializer_list&lt;U&gt;, Args ...)</code></a>
  301. <p>Explicit inplace exception constructor. Available if <code>predicate::enable_inplace_exception_constructor&lt;std::initializer_list&lt;U&gt;, Args ...&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  302. <a href="../../reference/types/basic_outcome/implicit_inplace_value_error_exception_constructor.html" ><code>basic_outcome(A1 &amp;&amp;, A2 &amp;&amp;, Args ...)</code></a>
  303. <p>Implicit inplace value or error or exception constructor. Available if <code>predicate::enable_inplace_value_error_exception_constructor&lt;A1, A2, Args ...&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p></li></ol>
  304. <h4 id="tagged-constructors">Tagged constructors</h4>
  305. <ol class="children children-li"><li>
  306. <a href="../../reference/types/basic_outcome/implicit_success_copy_constructor.html" ><code>basic_outcome(const success_type&lt;T&gt; &amp;)</code></a>
  307. <p>Implicit value-from-success-type-sugar copy constructor. Available if <code>predicate::enable_compatible_conversion&lt;T, void, void&gt;</code> is true, or <code>T</code> is <code>void</code>. Constexpr, triviality and noexcept propagating.</p><li>
  308. <a href="../../reference/types/basic_outcome/implicit_success_move_constructor.html" ><code>basic_outcome(success_type&lt;T&gt; &amp;&amp;)</code></a>
  309. <p>Implicit value-from-success-type-sugar move constructor. Available if <code>predicate::enable_compatible_conversion&lt;T, void, void&gt;</code> is true, or <code>T</code> is <code>void</code>. Constexpr, triviality and noexcept propagating.</p><li>
  310. <a href="../../reference/types/basic_outcome/implicit_failure_error_copy_constructor.html" ><code>basic_outcome(const failure_type&lt;EC&gt; &amp;)</code></a>
  311. <p>Implicit error-from-failure-type-sugar copy constructor. Available if <code>predicate::enable_compatible_conversion&lt;void, EC, void, void&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  312. <a href="../../reference/types/basic_outcome/implicit_failure_error_move_constructor.html" ><code>basic_outcome(failure_type&lt;EC&gt; &amp;&amp;)</code></a>
  313. <p>Implicit error-from-failure-type-sugar move constructor. Available if <code>predicate::enable_compatible_conversion&lt;void, EC, void, void&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  314. <a href="../../reference/types/basic_outcome/implicit_failure_error_make_error_code_copy_constructor.html" ><code>basic_outcome(const failure_type&lt;EC&gt; &amp;)</code></a>
  315. <p>Implicit error-from-failure-type-sugar copy constructor. Available if <code>predicate::enable_make_error_code_compatible_conversion&lt;void, EC, void, void&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  316. <a href="../../reference/types/basic_outcome/implicit_failure_error_make_error_code_move_constructor.html" ><code>basic_outcome(failure_type&lt;EC&gt; &amp;&amp;)</code></a>
  317. <p>Implicit error-from-failure-type-sugar move constructor. Available if <code>predicate::enable_make_error_code_compatible_conversion&lt;void, EC, void, void&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  318. <a href="../../reference/types/basic_outcome/implicit_failure_exception_copy_constructor.html" ><code>basic_outcome(const failure_type&lt;EP&gt; &amp;)</code></a>
  319. <p>Implicit exception-from-failure-type-sugar copy constructor. Available if <code>predicate::enable_compatible_conversion&lt;void, void, EP, void&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  320. <a href="../../reference/types/basic_outcome/implicit_failure_exception_move_constructor.html" ><code>basic_outcome(failure_type&lt;EP&gt; &amp;&amp;)</code></a>
  321. <p>Implicit exception-from-failure-type-sugar move constructor. Available if <code>predicate::enable_compatible_conversion&lt;void, void, EP, void&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  322. <a href="../../reference/types/basic_outcome/implicit_failure_error_exception_copy_constructor.html" ><code>basic_outcome(const failure_type&lt;EC, EP&gt; &amp;)</code></a>
  323. <p>Implicit error-and-exception-from-failure-type-sugar copy constructor. Available if <code>predicate::enable_compatible_conversion&lt;void, EC, EP, void&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p><li>
  324. <a href="../../reference/types/basic_outcome/implicit_failure_error_exception_move_constructor.html" ><code>basic_outcome(failure_type&lt;EC, EP&gt; &amp;&amp;)</code></a>
  325. <p>Implicit error-and-exception-from-failure-type-sugar move constructor. Available if <code>predicate::enable_compatible_conversion&lt;void, EC, EP, void&gt;</code> is true. Constexpr, triviality and noexcept propagating.</p></li></ol>
  326. <h4 id="observers">Observers</h4>
  327. <ol class="children children-li"><li>
  328. <a href="../../reference/types/basic_outcome/operator_bool.html" ><code>explicit operator bool() const noexcept</code></a>
  329. <p>Returns true if a value is present. Constexpr, never throws.</p><li>
  330. <a href="../../reference/types/basic_outcome/has_value.html" ><code>bool has_value() const noexcept</code></a>
  331. <p>Returns true if a value is present. Constexpr, never throws.</p><li>
  332. <a href="../../reference/types/basic_outcome/has_error.html" ><code>bool has_error() const noexcept</code></a>
  333. <p>Returns true if an error is present. Constexpr, never throws.</p><li>
  334. <a href="../../reference/types/basic_outcome/has_exception.html" ><code>bool has_exception() const noexcept</code></a>
  335. <p>Returns true if an exception is present. Constexpr, never throws.</p><li>
  336. <a href="../../reference/types/basic_outcome/has_failure.html" ><code>bool has_failure() const noexcept</code></a>
  337. <p>Returns true if there is either an error or an exception. Constexpr, never throws.</p><li>
  338. <a href="../../reference/types/basic_outcome/assume_value_lvalue.html" ><code>value_type &amp;assume_value() &amp; noexcept</code></a>
  339. <p>Narrow contract lvalue reference observer of any value present. Constexpr propagating, never throws.</p><li>
  340. <a href="../../reference/types/basic_outcome/assume_value_lvalue_const.html" ><code>const value_type &amp;assume_value() const &amp; noexcept</code></a>
  341. <p>Narrow contract const lvalue reference observer of any value present. Constexpr propagating, never throws.</p><li>
  342. <a href="../../reference/types/basic_outcome/assume_value_rvalue.html" ><code>value_type &amp;&amp;assume_value() &amp;&amp; noexcept</code></a>
  343. <p>Narrow contract rvalue reference observer of any value present. Constexpr propagating, never throws.</p><li>
  344. <a href="../../reference/types/basic_outcome/assume_value_rvalue_const.html" ><code>const value_type &amp;&amp;assume_value() const &amp;&amp; noexcept</code></a>
  345. <p>Narrow contract const rvalue reference observer of any value present. Constexpr propagating, never throws.</p><li>
  346. <a href="../../reference/types/basic_outcome/value_lvalue.html" ><code>value_type &amp;value() &amp;</code></a>
  347. <p>Wide contract lvalue reference observer of any value present. Constexpr propagating.</p><li>
  348. <a href="../../reference/types/basic_outcome/value_lvalue_const.html" ><code>const value_type &amp;value() const &amp;</code></a>
  349. <p>Wide contract const lvalue reference observer of any value present. Constexpr propagating.</p><li>
  350. <a href="../../reference/types/basic_outcome/value_rvalue.html" ><code>value_type &amp;&amp;value() &amp;&amp;</code></a>
  351. <p>Wide contract rvalue reference observer of any value present. Constexpr propagating.</p><li>
  352. <a href="../../reference/types/basic_outcome/value_rvalue_const.html" ><code>const value_type &amp;&amp;value() const &amp;&amp;</code></a>
  353. <p>Wide contract const rvalue reference observer of any value present. Constexpr propagating.</p><li>
  354. <a href="../../reference/types/basic_outcome/assume_error_lvalue.html" ><code>error_type &amp;assume_error() &amp; noexcept</code></a>
  355. <p>Narrow contract lvalue reference observer of the stored error. Constexpr propagating, never throws.</p><li>
  356. <a href="../../reference/types/basic_outcome/assume_error_lvalue_const.html" ><code>const error_type &amp;assume_error() const &amp; noexcept</code></a>
  357. <p>Narrow contract const lvalue reference observer of the stored error. Constexpr propagating, never throws.</p><li>
  358. <a href="../../reference/types/basic_outcome/assume_error_rvalue.html" ><code>error_type &amp;&amp;assume_error() &amp;&amp; noexcept</code></a>
  359. <p>Narrow contract rvalue reference observer of the stored error. Constexpr propagating, never throws.</p><li>
  360. <a href="../../reference/types/basic_outcome/assume_error_rvalue_const.html" ><code>const error_type &amp;&amp;assume_error() const &amp;&amp; noexcept</code></a>
  361. <p>Narrow contract const rvalue reference observer of the stored error. Constexpr propagating, never throws.</p><li>
  362. <a href="../../reference/types/basic_outcome/error_lvalue.html" ><code>error_type &amp;error() &amp;</code></a>
  363. <p>Wide contract lvalue reference observer of the stored error. Constexpr propagating.</p><li>
  364. <a href="../../reference/types/basic_outcome/error_lvalue_const.html" ><code>const error_type &amp;error() const &amp;</code></a>
  365. <p>Wide contract const lvalue reference observer of the stored error. Constexpr propagating.</p><li>
  366. <a href="../../reference/types/basic_outcome/error_rvalue.html" ><code>error_type &amp;&amp;error() &amp;&amp;</code></a>
  367. <p>Wide contract rvalue reference observer of the stored error. Constexpr propagating.</p><li>
  368. <a href="../../reference/types/basic_outcome/error_rvalue_const.html" ><code>const error_type &amp;&amp;error() const &amp;&amp;</code></a>
  369. <p>Wide contract const rvalue reference observer of the stored error. Constexpr propagating.</p><li>
  370. <a href="../../reference/types/basic_outcome/assume_exception_lvalue.html" ><code>exception_type &amp;assume_exception() &amp; noexcept</code></a>
  371. <p>Narrow contract lvalue reference observer of the stored exception. Constexpr propagating, never throws.</p><li>
  372. <a href="../../reference/types/basic_outcome/assume_exception_lvalue_const.html" ><code>const exception_type &amp;assume_exception() const &amp; noexcept</code></a>
  373. <p>Narrow contract const lvalue reference observer of the stored exception. Constexpr propagating, never throws.</p><li>
  374. <a href="../../reference/types/basic_outcome/assume_exception_rvalue_const.html" ><code>const exception_type &amp;&amp;assume_exception() const &amp;&amp; noexcept</code></a>
  375. <p>Narrow contract const rvalue reference observer of the stored exception. Constexpr propagating, never throws.</p><li>
  376. <a href="../../reference/types/basic_outcome/assume_exception_rvalue.html" ><code>exception_type &amp;&amp;assume_exception() &amp;&amp; noexcept</code></a>
  377. <p>Narrow contract rvalue reference observer of the stored exception. Constexpr propagating, never throws.</p><li>
  378. <a href="../../reference/types/basic_outcome/exception_lvalue.html" ><code>exception_type &amp;exception() &amp;</code></a>
  379. <p>Wide contract lvalue reference observer of the stored exception. Constexpr propagating.</p><li>
  380. <a href="../../reference/types/basic_outcome/exception_lvalue_const.html" ><code>const exception_type &amp;exception() const &amp;</code></a>
  381. <p>Wide contract const lvalue reference observer of the stored exception. Constexpr propagating.</p><li>
  382. <a href="../../reference/types/basic_outcome/exception_rvalue.html" ><code>exception_type &amp;&amp;exception() &amp;&amp;</code></a>
  383. <p>Wide contract rvalue reference observer of the stored exception. Constexpr propagating.</p><li>
  384. <a href="../../reference/types/basic_outcome/exception_rvalue_const.html" ><code>const exception_type &amp;&amp;exception() const &amp;&amp;</code></a>
  385. <p>Wide contract const rvalue reference observer of the stored exception. Constexpr propagating.</p><li>
  386. <a href="../../reference/types/basic_outcome/failure.html" ><code>exception_type failure() const noexcept</code></a>
  387. <p>Synthesising observer of the stored exception or error. Available if the traits <code>is_error_code_available&lt;T&gt;</code> and <code>is_exception_ptr_available&lt;T&gt;</code> are both true. Never throws.</p><li>
  388. <a href="../../reference/types/basic_outcome/as_failure_lvalue.html" ><code>failure_type&lt;error_type, exception_type&gt; as_failure() const &amp;</code></a>
  389. <p>Return the output from free function <code>failure()</code> containing a copy of any errored and/or excepted state.</p></li></ol>
  390. <h4 id="modifiers">Modifiers</h4>
  391. <ol class="children children-li"><li>
  392. <a href="../../reference/types/basic_outcome/swap.html" ><code>void swap(basic_outcome &amp;)</code></a>
  393. <p>Swap one basic_outcome with another, with the strong guarantee. Noexcept propagating.</p><li>
  394. <a href="../../reference/types/basic_outcome/as_failure_rvalue.html" ><code>failure_type&lt;error_type, exception_type&gt; as_failure() &amp;&amp;</code></a>
  395. <p>Return the output from free function <code>failure()</code> containing a move of any errored and/or excepted state.</p></li></ol>
  396. <h4 id="comparisons">Comparisons</h4>
  397. <p>See above for why <code>LessThanComparable</code> is not implemented.</p>
  398. <ol class="children children-li"><li>
  399. <a href="../../reference/types/basic_outcome/equality_basic_result.html" ><code>bool operator==(const basic_result&lt;A, B, C&gt; &amp;) const</code></a>
  400. <p>Returns true if this outcome compares equal to the other result. Constexpr and noexcept propagating.</p><li>
  401. <a href="../../reference/types/basic_outcome/equality_basic_outcome.html" ><code>bool operator==(const basic_outcome&lt;A, B, C, D&gt; &amp;) const</code></a>
  402. <p>Returns true if this outcome compares equal to the other outcome. Constexpr and noexcept propagating.</p><li>
  403. <a href="../../reference/types/basic_outcome/inequality_success_type.html" ><code>bool operator==(const success_type&lt;A&gt; &amp;) const</code></a>
  404. <p>Returns true if this result compares equal to the success type sugar. Constexpr and noexcept propagating.</p><li>
  405. <a href="../../reference/types/basic_outcome/equality_failure_type.html" ><code>bool operator==(const failure_type&lt;A, B&gt; &amp;) const</code></a>
  406. <p>Returns true if this outcome compares equal to the failure type sugar. Constexpr and noexcept propagating.</p><li>
  407. <a href="../../reference/types/basic_outcome/inequality_basic_result.html" ><code>bool operator!=(const basic_result&lt;A, B, C&gt; &amp;) const</code></a>
  408. <p>Returns true if this outcome does not compare equal to the other result. Constexpr and noexcept propagating.</p><li>
  409. <a href="../../reference/types/basic_outcome/inequality_basic_outcome.html" ><code>bool operator!=(const basic_outcome&lt;A, B, C, D&gt; &amp;) const</code></a>
  410. <p>Returns true if this outcome does not compare equal to the other outcome. Constexpr and noexcept propagating.</p><li>
  411. <a href="../../reference/types/basic_outcome/equality_success_type.html" ><code>bool operator!=(const success_type&lt;A&gt; &amp;) const</code></a>
  412. <p>Returns true if this outcome does not compare equal to the success type sugar. Constexpr and noexcept propagating.</p><li>
  413. <a href="../../reference/types/basic_outcome/inequality_failure_type.html" ><code>bool operator!=(const failure_type&lt;A, B&gt; &amp;) const</code></a>
  414. <p>Returns true if this outcome does not compare equal to the failure type sugar. Constexpr and noexcept propagating.</p></li></ol>
  415. </div><p><small>Last revised: October 11, 2019 at 17:03:05 &#43;0100</small></p>
  416. <hr>
  417. <div class="spirit-nav">
  418. <a accesskey="p" href="../../reference/types.html"><img src="../../images/prev.png" alt="Prev"></a>
  419. <a accesskey="u" href="../../reference/types.html"><img src="../../images/up.png" alt="Up"></a>
  420. <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/types/basic_outcome/default.html"><img src="../../images/next.png" alt="Next"></a></div></body>
  421. </html>