• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
43#define ARRAY (3, (a, b, c))
44
45<a href="array_pop_back.html">BOOST_PP_ARRAY_POP_BACK</a>(ARRAY) // expands to (2, (a, b))
46</pre></div>
47	<hr size="1">
48	<div style="margin-left: 0px;">
49		<i>� Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
50		</br><i>� Copyright Paul Mensonides 2002</i>
51	</div>
52	<div style="margin-left: 0px;">
53		<p><small>Distributed under the Boost Software License, Version 1.0. (See
54		accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
55		copy at <a href=
56		"http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
57	</div>
58</body>
59</html>
60