array_push_back.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <html>
  2. <head>
  3. <title>BOOST_PP_ARRAY_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_ARRAY_PUSH_BACK</b> macro appends an element to the end of an <i>array</i>.
  9. </div>
  10. <h4>Usage</h4>
  11. <div class="code">
  12. <b>BOOST_PP_ARRAY_PUSH_BACK</b>(<i>array</i>, <i>elem</i>)
  13. </div>
  14. <h4>Arguments</h4>
  15. <dl>
  16. <dt>array</dt>
  17. <dd>
  18. The <i>array</i> to append an element to.
  19. </dd>
  20. <dt>elem</dt>
  21. <dd>
  22. The element to append.
  23. </dd>
  24. </dl>
  25. <h4>Requirements</h4>
  26. <div>
  27. <b>Header:</b> &nbsp;<a href="../headers/array/push_back.html">&lt;boost/preprocessor/array/push_back.hpp&gt;</a>
  28. </div>
  29. <h4>Sample Code</h4>
  30. <div><pre>
  31. #include &lt;<a href="../headers/array/push_back.html">boost/preprocessor/array/push_back.hpp</a>&gt;
  32. #define ARRAY (3, (a, b, c))
  33. <a href="array_push_back.html">BOOST_PP_ARRAY_PUSH_BACK</a>(ARRAY, d) // expands to (4, (a, b, c, d))
  34. </pre></div>
  35. <hr size="1">
  36. <div style="margin-left: 0px;">
  37. <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  38. </br><i>© Copyright Paul Mensonides 2002</i>
  39. </div>
  40. <div style="margin-left: 0px;">
  41. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  42. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
  43. copy at <a href=
  44. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  45. </div>
  46. </body>
  47. </html>