3
<title>BOOST_PP_BITOR</title>
4
<link rel="stylesheet" type="text/css" href="../styles.css">
7
<div style="margin-left: 0px;">
8
The <b>BOOST_PP_BITOR</b> macro expands to the bitwise <i>OR</i> of its operands.
12
<b>BOOST_PP_BITOR</b>(<i>x</i>, <i>y</i>)
18
The left operand of the operation.
19
This value must expand to <i>0</i> or <i>1</i>.
23
The right operand of the operation.
24
This value must expand to <i>0</i> or <i>1</i>.
29
If either <i>x</i> or <i>y</i> is <i>1</i>, this macro expands to <i>1</i>.
30
Otherwise, it expands to <i>0</i>.
33
This macro <i>does not</i> perform a boolean conversion on either operand before performing the bitwise <i>OR</i> operation.
34
If that conversion is necessary, use <b>BOOST_PP_OR</b> instead.
38
<li><a href="or.html">BOOST_PP_OR</a></li>
42
<b>Header:</b> <a href="../headers/logical/bitor.html"><boost/preprocessor/logical/bitor.hpp></a>
46
#include <<a href="../headers/logical/bitor.html">boost/preprocessor/logical/bitor.hpp</a>>
48
<a href="bitor.html">BOOST_PP_BITOR</a>(0, 0) // expands to 0
49
<a href="bitor.html">BOOST_PP_BITOR</a>(0, 1) // expands to 1
50
<a href="bitor.html">BOOST_PP_BITOR</a>(1, 0) // expands to 1
51
<a href="bitor.html">BOOST_PP_BITOR</a>(1, 1) // expands to 1
54
<div style="margin-left: 0px;">
55
<i>� Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
56
</br><i>� Copyright Paul Mensonides 2002</i>
58
<div style="margin-left: 0px;">
59
<p><small>Distributed under the Boost Software License, Version 1.0. (See
60
accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
62
"http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>