array_pop_back.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <html>
  2. <head>
  3. <title>BOOST_PP_ARRAY_POP_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_POP_BACK</b> macro pops an element from the end of an <i>array</i>.
  9. </div>
  10. <h4>Usage</h4>
  11. <div class="code">
  12. <b>BOOST_PP_ARRAY_POP_BACK</b>(<i>array</i>)
  13. </div>
  14. <h4>Arguments</h4>
  15. <dl>
  16. <dt>array</dt>
  17. <dd>
  18. The <i>array</i> to pop an element from.
  19. </dd>
  20. </dl>
  21. <h4>Remarks</h4>
  22. <div>
  23. This macro returns <i>array</i> after removing the last element.&nbsp;
  24. If <i>array</i> has no elements, the result of applying this macro is undefined.
  25. </div>
  26. <div>
  27. This macro uses <b>BOOST_PP_REPEAT</b> internally.&nbsp;
  28. Therefore, to use the <i>z</i> parameter passed from other macros that use
  29. <b>BOOST_PP_REPEAT</b>, see <b>BOOST_PP_ARRAY_POP_BACK_Z</b>
  30. </div>
  31. <h4>See Also</h4>
  32. <ul>
  33. <li><a href="array_pop_back_z.html">BOOST_PP_ARRAY_POP_BACK_Z</a></li>
  34. </ul>
  35. <h4>Requirements</h4>
  36. <div>
  37. <b>Header:</b> &nbsp;<a href="../headers/array/pop_back.html">&lt;boost/preprocessor/array/pop_back.hpp&gt;</a>
  38. </div>
  39. <h4>Sample Code</h4>
  40. <div><pre>
  41. #include &lt;<a href="../headers/array/pop_back.html">boost/preprocessor/array/pop_back.hpp</a>&gt;
  42. #define ARRAY (3, (a, b, c))
  43. <a href="array_pop_back.html">BOOST_PP_ARRAY_POP_BACK</a>(ARRAY) // expands to (2, (a, b))
  44. </pre></div>
  45. <hr size="1">
  46. <div style="margin-left: 0px;">
  47. <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  48. </br><i>© Copyright Paul Mensonides 2002</i>
  49. </div>
  50. <div style="margin-left: 0px;">
  51. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  52. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
  53. copy at <a href=
  54. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  55. </div>
  56. </body>
  57. </html>