3 <title>BOOST_PP_GREATER_D
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_GREATER_D
</b> macro compares two values for greater magnitude.
9 It reenters
<b>BOOST_PP_WHILE
</b> with maximum efficiency.
13 <b>BOOST_PP_GREATER_D
</b>(
<i>d
</i>,
<i>x
</i>,
<i>y
</i>)
19 The next available
<b>BOOST_PP_WHILE
</b> iteration.
23 The left operand of the comparison.
24 Valid values range from
<i>0</i> to
<b>BOOST_PP_LIMIT_MAG
</b>.
28 The right operand of the comparison.
29 Valid values range from
<i>0</i> to
<b>BOOST_PP_LIMIT_MAG
</b>.
34 If
<i>x
</i> is greater than
<i>y
</i>, this macro expands to
<i>1</i>.
35 Otherwise, it expands to
<i>0</i>.
39 <li><a href=
"greater.html">BOOST_PP_GREATER
</a></li>
40 <li><a href=
"limit_mag.html">BOOST_PP_LIMIT_MAG
</a></li>
44 <b>Header:
</b> <a href=
"../headers/comparison/greater.html"><boost/preprocessor/comparison/greater.hpp
></a>
48 #include
<<a href=
"../headers/comparison/greater.html">boost/preprocessor/comparison/greater.hpp
</a>>
49 #include
<<a href=
"../headers/list/filter.html">boost/preprocessor/list/filter.hpp
</a>>
51 #define LIST (
1, (
2, (
3, (
4, (
5,
<a href=
"nil.html">BOOST_PP_NIL
</a>)))))
53 #define PRED(d, _, num)
<a href=
"greater_d.html">BOOST_PP_GREATER_D
</a>(d, num,
2)
55 <a href=
"list_filter.html">BOOST_PP_LIST_FILTER
</a>(PRED, nil, LIST) // expands to (
3, (
4, (
5,
<a href=
"nil.html">BOOST_PP_NIL
</a>)))
58 <div style=
"margin-left: 0px;">
59 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
60 </br><i>© Copyright Paul Mensonides
2002</i>
62 <div style=
"margin-left: 0px;">
63 <p><small>Distributed under the Boost Software License, Version
1.0. (See
64 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
66 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>