Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / outcome / doc / html / reference / macros / tryx.html
index a56e4de..04be248 100644 (file)
@@ -7,9 +7,9 @@
 
 <link rel="icon" href="../../images/favicon.ico" type="image/ico"/>
 <body><div class="spirit-nav">
-<a accesskey="p" href="../../reference/macros/tryv.html"><img src="../../images/prev.png" alt="Prev"></a>
+<a accesskey="p" href="../../reference/macros/tryv_failure_likely.html"><img src="../../images/prev.png" alt="Prev"></a>
     <a accesskey="u" href="../../reference/macros.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/macros/in_place_type.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
+    <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/macros/tryx_failure_likely.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
   <div class="titlepage"><div><div><h1 style="clear: both"><code>BOOST_OUTCOME_TRYX(expr)</code></h1></div></div></div>
   <p>Evaluate an expression which results in a type matching the following customisation points, emitting the <code>T</code> if successful, immediately returning <a href="../../reference/functions/try_operation_return_as.html" class="api-reference"><code>try_operation_return_as(X)</code></a>
  from the calling function if unsuccessful:</p>
@@ -25,6 +25,9 @@
 
 <p>Default overloads for these customisation points are provided. See <a href="../../recipes/foreign-try.html">the recipe for supporting foreign input to <code>BOOST_OUTCOME_TRY</code></a>.</p>
 
+<p>Hints are given to the compiler that the expression will be successful. If you expect failure, you should use <a href="../../reference/macros/tryx_failure_likely.html" class="api-reference"><code>BOOST_OUTCOME_TRYX_FAILURE_LIKELY(expr)</code></a>
+ instead.</p>
+
 <p><em>Availability</em>: GCC and clang only. Use <code>#ifdef BOOST_OUTCOME_TRYX</code> to determine if available.</p>
 
 <p><em>Overridable</em>: Not overridable.</p>
 <p><em>Header</em>: <code>&lt;boost/outcome/try.hpp&gt;</code></p>
 
 
-        </div><p><small>Last revised: June 21, 2019 at 21:45:08 &#43;0100</small></p>
+        </div><p><small>Last revised: October 16, 2019 at 10:26:35 &#43;0100</small></p>
 <hr>
 <div class="spirit-nav">
-<a accesskey="p" href="../../reference/macros/tryv.html"><img src="../../images/prev.png" alt="Prev"></a>
+<a accesskey="p" href="../../reference/macros/tryv_failure_likely.html"><img src="../../images/prev.png" alt="Prev"></a>
     <a accesskey="u" href="../../reference/macros.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/macros/in_place_type.html"><img src="../../images/next.png" alt="Next"></a></div></body>
+    <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/macros/tryx_failure_likely.html"><img src="../../images/next.png" alt="Next"></a></div></body>
 </html>