try_operation_has_value.html 2.0 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 try_operation_has_value(X) - 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/functions/success.html"><img src="../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../reference/functions.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/functions/try_operation_extract_value.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 try_operation_has_value(X)</code></h1></div></div></div>
  13. <p>This default implementation returns whatever the <code>.has_value()</code> member function returns.</p>
  14. <p><em>Requires</em>: That the expression <code>std::declval&lt;T&gt;().has_value()</code> is a valid expression.</p>
  15. <p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE</code></p>
  16. <p><em>Header</em>: <code>&lt;boost/outcome/try.hpp&gt;</code></p>
  17. </div><p><small>Last revised: June 20, 2019 at 11:14:48 &#43;0100</small></p>
  18. <hr>
  19. <div class="spirit-nav">
  20. <a accesskey="p" href="../../reference/functions/success.html"><img src="../../images/prev.png" alt="Prev"></a>
  21. <a accesskey="u" href="../../reference/functions.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/functions/try_operation_extract_value.html"><img src="../../images/next.png" alt="Next"></a></div></body>
  23. </html>