equality_basic_outcome.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>bool operator==(const basic_outcome&lt;A, B, C, D&gt; &amp;) const - 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_outcome/equality_basic_result.html"><img src="../../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../../reference/types/basic_outcome.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/inequality_success_type.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
  12. <div class="titlepage"><div><div><h1 style="clear: both"><code>bool operator==(const basic_outcome&lt;A, B, C, D&gt; &amp;) const</code></h1></div></div></div>
  13. <p>Returns true if this outcome compares equal to the other outcome. Comparison is done using <code>operator==</code> on <code>value_type</code> or <code>error_type</code> and/or <code>exception_type</code> if the currently chosen state is the same for both outcomes, otherwise false is returned.</p>
  14. <p><em>Requires</em>: <code>operator==</code> must be a valid expression between <code>value_type</code> and <code>A</code>, and between <code>error_type</code> and <code>B</code>, and between <code>exception_type</code> and <code>C</code>. If <code>value_type</code> is <code>void</code>, then so must be <code>A</code>; similarly for <code>error_type</code> and <code>B</code>; similarly for <code>exception_type</code> and <code>C</code>.</p>
  15. <p><em>Complexity</em>: Whatever the underlying <code>operator==</code> have. Constexpr and noexcept of underlying operations is propagated.</p>
  16. <p><em>Guarantees</em>: None.</p>
  17. </div><p><small>Last revised: February 01, 2019 at 15:52:57 UTC</small></p>
  18. <hr>
  19. <div class="spirit-nav">
  20. <a accesskey="p" href="../../../reference/types/basic_outcome/equality_basic_result.html"><img src="../../../images/prev.png" alt="Prev"></a>
  21. <a accesskey="u" href="../../../reference/types/basic_outcome.html"><img src="../../../images/up.png" alt="Up"></a>
  22. <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/types/basic_outcome/inequality_success_type.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
  23. </html>