3 <title>BOOST_PP_COMPL
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_COMPL
</b> macro performs a bitwise inversion (bitwise
<i>NOT
</i> or one's complement) on its operand.
12 <b>BOOST_PP_COMPL
</b>(
<i>x
</i>)
18 The value to be converted.
19 This value must expand to
<i>0</i> or
<i>1</i>.
24 If
<i>x
</i> is
<i>0</i>, this macro expands to
<i>1</i>.
25 If
<i>x
</i> is
<i>1</i>, this it expands to
<i>0</i>.
28 This macro
<i>does not
</i> perform a boolean conversion on its operand before performing the inversion
<i>OR
</i> operation.
29 If that conversion is necessary, use
<b>BOOST_PP_NOT
</b> instead.
33 <li><a href=
"not.html">BOOST_PP_NOT
</a></li>
37 <b>Header:
</b> <a href=
"../headers/logical/compl.html"><boost/preprocessor/logical/compl.hpp
></a>
41 #include
<<a href=
"../headers/logical/compl.html">boost/preprocessor/logical/compl.hpp
</a>>
43 <a href=
"compl.html">BOOST_PP_COMPL
</a>(
1) // expands to
0
44 <a href=
"compl.html">BOOST_PP_COMPL
</a>(
0) // expands to
1
47 <div style=
"margin-left: 0px;">
48 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
49 </br><i>© Copyright Paul Mensonides
2002</i>
51 <div style=
"margin-left: 0px;">
52 <p><small>Distributed under the Boost Software License, Version
1.0. (See
53 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
55 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>