3 <title>BOOST_PP_BITXOR
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
8 <div style=
"margin-left: 0px;">
9 The
<b>BOOST_PP_BITXOR
</b> macro expands to the bitwise
<i>XOR
</i> of its operands.
13 <b>BOOST_PP_BITXOR
</b>(
<i>x
</i>,
<i>y
</i>)
19 The left operand of the operation.
20 This value must expand to
<i>0</i> or
<i>1</i>.
24 The right operand of the operation.
25 This value must expand to
<i>0</i> or
<i>1</i>.
30 If either
<i>x
</i> or
<i>y
</i> is
<i>1</i> exclusively, this macro expands to
<i>1</i>.
31 Otherwise, it expands to
<i>0</i>.
34 This macro
<i>does not
</i> perform a boolean conversion on either operand before performing the bitwise
<i>OR
</i> operation.
35 If that conversion is necessary, use
<b>BOOST_PP_XOR
</b> instead.
39 <li><a href=
"xor.html">BOOST_PP_XOR
</a></li>
43 <b>Header:
</b> <a href=
"../headers/logical/bitxor.html"><boost/preprocessor/logical/bitxor.hpp
></a>
47 #include
<<a href=
"../headers/logical/bitxor.html">boost/preprocessor/logical/bitxor.hpp
</a>>
49 <a href=
"bitxor.html">BOOST_PP_BITXOR
</a>(
0,
0) // expands to
0
50 <a href=
"bitxor.html">BOOST_PP_BITXOR
</a>(
0,
1) // expands to
1
51 <a href=
"bitxor.html">BOOST_PP_BITXOR
</a>(
1,
0) // expands to
1
52 <a href=
"bitxor.html">BOOST_PP_BITXOR
</a>(
1,
1) // expands to
0
55 <div style=
"margin-left: 0px;">
56 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
57 </br><i>© Copyright Paul Mensonides
2002</i>
59 <div style=
"margin-left: 0px;">
60 <p><small>Distributed under the Boost Software License, Version
1.0. (See
61 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
63 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>