seq_push_back.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <html>
  2. <head>
  3. <title>BOOST_PP_SEQ_PUSH_BACK</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_PUSH_BACK</b> macro pushes an element onto the end of a <i>seq</i>.
  9. </div>
  10. <h4>
  11. Usage
  12. </h4>
  13. <div class="code">
  14. <b>BOOST_PP_SEQ_PUSH_BACK</b>(<i>seq</i>, <i>elem</i>)
  15. </div>
  16. <h4>
  17. Arguments
  18. </h4>
  19. <dl>
  20. <dt>seq</dt>
  21. <dd>
  22. The <i>seq</i> onto which <i>elem</i> is pushed.
  23. </dd>
  24. <dt>elem</dt>
  25. <dd>
  26. The element to push onto the end of <i>seq</i>.
  27. </dd>
  28. </dl>
  29. <h4>
  30. Remarks
  31. </h4>
  32. <div>
  33. This macro returns <i>seq</i> after appending <i>elem</i>.&nbsp;
  34. </div>
  35. <div>
  36. This macro is an explicit form of directly appending an element.&nbsp; In other
  37. words, <b>BOOST_PP_SEQ_PUSH_BACK</b>(<i>seq</i>, <i>x</i>) is equivalent to <i>seq</i>(<i>x</i>).
  38. </div>
  39. <h4>
  40. See Also
  41. </h4>
  42. <ul>
  43. <li>
  44. <a href="seq_push_front.html">BOOST_PP_SEQ_PUSH_FRONT</a></li>
  45. </ul>
  46. <h4>
  47. Requirements
  48. </h4>
  49. <div>
  50. <b>Header:</b> &nbsp;<a href="../headers/seq/push_back.html">&lt;boost/preprocessor/seq/push_back.hpp&gt;</a>
  51. </div>
  52. <h4>
  53. Sample Code
  54. </h4>
  55. <div>
  56. <pre>
  57. #include &lt;<a href="../headers/seq/push_back.html">boost/preprocessor/seq/push_back.hpp</a>&gt;
  58. #define SEQ (a)(b)
  59. <a href="seq_push_back.html">BOOST_PP_SEQ_PUSH_BACK</a>(SEQ, c) // expands to (a)(b)(c)
  60. </pre>
  61. </div>
  62. <hr size="1">
  63. <div style="margin-left: 0px;">
  64. <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  65. </br><i>© Copyright Paul Mensonides 2002</i>
  66. </div>
  67. <div style="margin-left: 0px;">
  68. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  69. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
  70. copy at <a href=
  71. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  72. </div>
  73. </body>
  74. </html>