seq_remove.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <html>
  2. <head>
  3. <title>BOOST_PP_SEQ_REMOVE</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_REMOVE</b> macro removes an element from a <i>seq</i>.
  9. </div>
  10. <h4>
  11. Usage
  12. </h4>
  13. <div class="code">
  14. <b>BOOST_PP_SEQ_REMOVE</b>(<i>seq</i>, <i>i</i>)
  15. </div>
  16. <h4>
  17. Arguments
  18. </h4>
  19. <dl>
  20. <dt>seq</dt>
  21. <dd>
  22. The <i>seq</i> from which an element is to be removed.
  23. </dd>
  24. <dt>i</dt>
  25. <dd>
  26. The zero-based position in <i>seq</i> of the element to be removed.&nbsp; Valid
  27. values range from <i>0</i> to <b>BOOST_PP_SEQ_SIZE</b>(<i>seq</i>) - <i>1</i>.
  28. </dd>
  29. </dl>
  30. <h4>
  31. Remarks
  32. </h4>
  33. <div>
  34. This macro returns <i>seq</i> after removing the element at index <i>i</i>.
  35. </div>
  36. <h4>
  37. Requirements
  38. </h4>
  39. <div>
  40. <b>Header:</b> &nbsp;<a href="../headers/seq/remove.html">&lt;boost/preprocessor/seq/remove.hpp&gt;</a>
  41. </div>
  42. <h4>
  43. Sample Code
  44. </h4>
  45. <div>
  46. <pre>
  47. #include &lt;<a href="../headers/seq/remove.html">boost/preprocessor/seq/remove.hpp</a>&gt;
  48. #define SEQ (a)(b)(x)(c)
  49. <a href="seq_remove.html">BOOST_PP_SEQ_REMOVE</a>(SEQ, 2) // expands to (a)(b)(c)
  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>