3 <title>BOOST_PP_NOT
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_NOT
</b> macro performs a logical
<i>NOT
</i> on its operand.
12 <b>BOOST_PP_NOT
</b>(
<i>x
</i>)
18 The value to be converted.
19 Valid values range from
<i>0</i> to
<b>BOOST_PP_LIMIT_MAG
</b>.
24 If
<i>x
</i> is zero, this macro expands to
<i>1</i>.
25 Otherwise, it expands to
<i>0</i>.
28 This macro performs a boolean conversion on its operand before performing the logical
<i>NOT
</i> operation.
29 If that conversion is not necessary, use
<b>BOOST_PP_COMPL
</b> instead.
33 <li><a href=
"compl.html">BOOST_PP_COMPL
</a></li>
34 <li><a href=
"limit_mag.html">BOOST_PP_LIMIT_MAG
</a></li>
38 <b>Header:
</b> <a href=
"../headers/logical/not.html"><boost/preprocessor/logical/not.hpp
></a>
42 #include
<<a href=
"../headers/logical/not.html">boost/preprocessor/logical/not.hpp
</a>>
44 <a href=
"not.html">BOOST_PP_NOT
</a>(
55) // expands to
0
45 <a href=
"not.html">BOOST_PP_NOT
</a>(
0) // expands to
1
48 <div style=
"margin-left: 0px;">
49 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
50 </br><i>© Copyright Paul Mensonides
2002</i>
52 <div style=
"margin-left: 0px;">
53 <p><small>Distributed under the Boost Software License, Version
1.0. (See
54 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
56 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>