seq_enum.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <html>
  2. <head>
  3. <title>BOOST_PP_SEQ_ENUM</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_SEQ_ENUM</b> macro enumerates the elements in a <i>seq</i>.
  9. </div>
  10. <h4>
  11. Usage
  12. </h4>
  13. <div class="code">
  14. <b>BOOST_PP_SEQ_ENUM</b>(<i>seq</i>)
  15. </div>
  16. <h4>
  17. Arguments
  18. </h4>
  19. <dl>
  20. <dt>seq</dt>
  21. <dd>
  22. The <i>seq</i> from whose elements are to be enumerated.
  23. </dd>
  24. </dl>
  25. <h4>
  26. Remarks
  27. </h4>
  28. <div>
  29. This macro expands to a comma-separated list of the elements in <i>seq</i>.&nbsp;
  30. For example, <b>BOOST_PP_SEQ_ENUM</b>((<i>x</i>)(<i>y</i>)(<i>z</i>)) expands
  31. to...
  32. <div>
  33. <i>x</i>, <i>y</i>, <i>z</i>
  34. </div>
  35. </div>
  36. <h4>
  37. Requirements
  38. </h4>
  39. <div>
  40. <b>Header:</b> &nbsp;<a href="../headers/seq/enum.html">&lt;boost/preprocessor/seq/enum.hpp&gt;</a>
  41. </div>
  42. <h4>
  43. Sample Code
  44. </h4>
  45. <div>
  46. <pre>
  47. #include &lt;<a href="../headers/seq/enum.html">boost/preprocessor/seq/enum.hpp</a>&gt;
  48. #define SEQ (B)(O)(O)(S)(T)
  49. <a href="seq_enum.html">BOOST_PP_SEQ_ENUM</a>(SEQ) // expands to B, O, O, S, T
  50. </pre>
  51. </div>
  52. <hr size="1">
  53. <div style="margin-left: 0px;">
  54. <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  55. </br><i>© Copyright Paul Mensonides 2002</i>
  56. </div>
  57. <div style="margin-left: 0px;">
  58. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  59. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
  60. copy at <a href=
  61. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  62. </div>
  63. </body>
  64. </html>