seq_subseq.html 1.7 KB

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