Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / contract / doc / html / boost / contract / condition_if_c.html
index 06c8553..a21bd34 100644 (file)
@@ -26,7 +26,7 @@
 <a name="boost.contract.condition_if_c"></a><div class="titlepage"></div>
 <div class="refnamediv">
 <h2><span class="refentrytitle">Function template condition_if_c</span></h2>
-<p>boost::contract::condition_if_c &#8212; Select compilation and execution of a boolean functor template condition using a static boolean predicate. </p>
+<p>boost::contract::condition_if_c &#8212; Select compilation and execution of a boolean functor template condition using a static boolean predicate (not needed on C++17 compilers, use <code class="computeroutput">if constexpr</code> instead). </p>
 </div>
 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../reference.html#header.boost.contract.call_if_hpp" title="Header &lt;boost/contract/call_if.hpp&gt;">boost/contract/call_if.hpp</a>&gt;
@@ -35,9 +35,9 @@
 <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">bool</span> Pred<span class="special">,</span> <span class="keyword">typename</span> Then<span class="special">&gt;</span> 
   <span class="keyword">bool</span> <span class="identifier">condition_if_c</span><span class="special">(</span><span class="identifier">Then</span> f<span class="special">,</span> <span class="keyword">bool</span> else_ <span class="special">=</span> <span class="keyword">true</span><span class="special">)</span><span class="special">;</span></pre></div>
 <div class="refsect1">
-<a name="idm45751731045232"></a><h2>Description</h2>
+<a name="idm45707997597920"></a><h2>Description</h2>
 <p>Compile and execute the nullary boolean functor template call <code class="computeroutput">f()</code> if and only if the specified static boolean predicate <code class="computeroutput">Pred</code> is <code class="computeroutput">true</code>, otherwise trivially return <code class="computeroutput">else_</code> (<code class="computeroutput">true</code> by default) at run-time.</p>
-<p>A call to <code class="computeroutput">boost::contract::condition_if_c&lt;Pred&gt;(f, else_)</code> is logically equivalent to <code class="computeroutput">boost::contract::call_if_c&lt;Pred&gt;(f, [else_] { return else_; })</code> (but its internal implementation is optimized and it does not actually use <code class="computeroutput">call_if_c</code>).</p>
+<p>A call to <code class="computeroutput">boost::contract::condition_if_c&lt;Pred&gt;(f, else_)</code> is logically equivalent to <code class="computeroutput">boost::contract::call_if_c&lt;Pred&gt;(f, [] { return else_; })</code> (but its internal implementation is optimized and it does not actually use <code class="computeroutput">call_if_c</code>).</p>
 <p><span class="bold"><strong>See Also:</strong></span></p>
 <p> <a class="link" href="../../boost_contract/extras.html#boost_contract.extras.assertion_requirements__templates_" title="Assertion Requirements (Templates)">
         Assertion Requirements</a></p>
@@ -97,7 +97,7 @@
 </div>
 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
 <td align="left"></td>
-<td align="right"><div class="copyright-footer">Copyright &#169; 2008-2018 Lorenzo Caminiti<p>
+<td align="right"><div class="copyright-footer">Copyright &#169; 2008-2019 Lorenzo Caminiti<p>
         Distributed under the Boost Software License, Version 1.0 (see accompanying
         file LICENSE_1_0.txt or a copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
       </p>