Files
preprocessor/docs.1/ref/nor.html

55 lines
1.7 KiB
HTML
Raw Normal View History

2002-09-08 09:40:56 +00:00
<html>
<head>
<title>BOOST_PP_NOR</title>
<link rel="stylesheet" type="text/css" href="../styles.css">
<script language="javascript" type="text/javascript" src="../scripts.js"></script>
</head>
<body onload="init('sample');">
<div style="margin-left: 0px;">
The <b>BOOST_PP_NOR</b> macro expands to the logical <i>NOR</i> of its operands.
</div>
<h4>Usage</h4>
<div class="code">
<b>BOOST_PP_NOR</b>(<i>p</i>, <i>q</i>)
</div>
<h4>Arguments</h4>
<dl>
<dt>p</dt>
<dd>
The left operand of the operation.&nbsp;
Valid values range from <i>0</i> to <b>BOOST_PP_LIMIT_MAG</b>.
</dd>
<dt>q</dt>
<dd>
The right operand of the operation.&nbsp;
Valid values range from <i>0</i> to <b>BOOST_PP_LIMIT_MAG</b>.
</dd>
</dl>
<h4>Remarks</h4>
<div>
If both <i>p</i> and <i>q</i> are both <i>0</i>, this macro expands to <i>1</i>.&nbsp;
Otherwise, it expands to <i>0</i>.
</div>
<div>
This macro performs a boolean conversion on each operand before performing the logical <i>NOR</i> operation.&nbsp;
If that conversion is not necessary, use <b>BOOST_PP_BITNOR</b> instead.
</div>
<h4>See Also</h4>
<ul>
<li><a href="bitnor.html">BOOST_PP_BITNOR</a></li>
<li><a href="limit_mag.html">BOOST_PP_LIMIT_MAG</a></li>
</ul>
<h4>Requirements</h4>
<div>
<b>Header:</b> &nbsp;<a href="../headers/logical/nor.hpp.html">&lt;boost/preprocessor/logical/nor.hpp&gt;</a>
</div>
<h4><a class="local" onclick="toggle('sample');" onmouseover="change(this);" onmouseout="revert(this);">Sample Code</a></h4>
<div id="sample"><pre>
#include &lt;boost/preprocessor/logical/nor.hpp&gt;
BOOST_PP_NOR(4, 0) // expands to 0
BOOST_PP_NOR(0, 0) // expands to 1
<pre></div>
</body>
</html>