list_rest.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <html>
  2. <head>
  3. <title>BOOST_PP_LIST_REST</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_LIST_REST</b> macro expands to the tail of a <i>list</i>.
  9. </div>
  10. <h4>Usage</h4>
  11. <div class="code">
  12. <b>BOOST_PP_LIST_REST</b>(<i>list</i>)
  13. </div>
  14. <h4>Arguments</h4>
  15. <dl>
  16. <dt>list</dt>
  17. <dd>
  18. A non-nil <i>list</i>.
  19. </dd>
  20. </dl>
  21. <h4>Requirements</h4>
  22. <div>
  23. <b>Header:</b> &nbsp;<a href="../headers/list/adt.html">&lt;boost/preprocessor/list/adt.hpp&gt;</a>
  24. </div>
  25. <h4>Sample Code</h4>
  26. <div><pre>
  27. #include &lt;<a href="../headers/list/adt.html">boost/preprocessor/list/adt.hpp</a>&gt;
  28. #define OLD \
  29. <a href="list_cons.html">BOOST_PP_LIST_CONS</a>( \
  30. a, \
  31. <a href="list_cons.html">BOOST_PP_LIST_CONS</a>( \
  32. b, \
  33. <a href="list_cons.html">BOOST_PP_LIST_CONS</a>( \
  34. c, \
  35. <a href="list_nil.html">BOOST_PP_LIST_NIL</a> \
  36. ) \
  37. ) \
  38. ) \
  39. /**/
  40. #define NEW (a, (b, (c, <a href="nil.html">BOOST_PP_NIL</a>)))
  41. <a href="list_first.html">BOOST_PP_LIST_FIRST</a>(OLD) == <a href="list_first.html">BOOST_PP_LIST_FIRST</a>(NEW)
  42. // expands to a == a
  43. <a href="list_rest.html">BOOST_PP_LIST_REST</a>(OLD) == <a href="list_rest.html">BOOST_PP_LIST_REST</a>(NEW)
  44. // expands to (b, (c, <a href="nil.html">BOOST_PP_NIL</a>)) == (b, (c, <a href="nil.html">BOOST_PP_NIL</a>))
  45. </pre></div>
  46. <hr size="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>
  50. </div>
  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
  54. copy at <a href=
  55. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  56. </div>
  57. </body>
  58. </html>