1<html> 2<head> 3 <title>BOOST_PP_EQUAL_D</title> 4 <link rel="stylesheet" type="text/css" href="../styles.css"> 5</head> 6<body> 7 <div style="margin-left: 0px;"> 8 The <b>BOOST_PP_EQUAL_D</b> macro compares two values for equality. 9 </div> 10 <h4>Usage</h4> 11 <div class="code"> 12 <b>BOOST_PP_EQUAL_D</b>(<i>d</i>, <i>x</i>, <i>y</i>) 13 </div> 14 <h4>Arguments</h4> 15 <dl> 16 <dt>d</dt> 17 <dd> 18 This argument is ignored. 19 </dd> 20 <dt>x</dt> 21 <dd> 22 The left operand of the comparison. 23 Valid values range from <i>0</i> to <b>BOOST_PP_LIMIT_MAG</b>. 24 </dd> 25 <dt>y</dt> 26 <dd> 27 The right operand of the comparison. 28 Valid values range from <i>0</i> to <b>BOOST_PP_LIMIT_MAG</b>. 29 </dd> 30 </dl> 31 <h4>Remarks</h4> 32 <div> 33 If <i>x</i> is equal to <i>y</i>, this macro expands to <i>1</i>. 34 Otherwise, it expands to <i>0</i>. 35 </div> 36 <div> 37 This macro is deprecated. 38 It only exists for backward compatibility. 39 Use <b>BOOST_PP_EQUAL</b> instead. 40 </div> 41 <h4>See Also</h4> 42 <ul> 43 <li><a href="equal.html">BOOST_PP_EQUAL</a></li> 44 <li><a href="limit_mag.html">BOOST_PP_LIMIT_MAG</a></li> 45 </ul> 46 <h4>Requirements</h4> 47 <div> 48 <b>Header:</b> <a href="../headers/comparison/equal.html"><boost/preprocessor/comparison/equal.hpp></a> 49 </div> 50 <h4>Sample Code</h4> 51<div><pre> 52#include <<a href="../headers/comparison/equal.html">boost/preprocessor/comparison/equal.hpp</a>> 53 54<a href="equal_d.html">BOOST_PP_EQUAL_D</a>(1, 4, 3) // expands to 0 55<a href="equal_d.html">BOOST_PP_EQUAL_D</a>(1, 5, 5) // expands to 1 56</pre></div> 57 <hr size="1"> 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> 61 </div> 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 65 copy at <a href= 66 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p> 67 </div> 68</body> 69</html> 70