• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2  <head>
3    <meta content="text/html; charset=windows-1252" http-equiv="content-type">
4    <title>BOOST_PP_TUPLE_POP_BACK</title>
5    <link rel="stylesheet" type="text/css" href="../styles.css">
6  </head>
7  <body>
8    <div style="margin-left:  0px;"> The <b>BOOST_PP_TUPLE_POP_BACK</b> macro
9      pops an element from the end of an <i>tuple</i>.</div>
10    <h4>Usage</h4>
11    <div class="code"> <b>BOOST_PP_TUPLE_POP_BACK</b>(<i>tuple</i>) <a href="../topics/variadic_macros.html#VNotation"><sup>(v)</sup></a></div>
12    <h4>Arguments</h4>
13    <dl>
14      <dt>tuple</dt>
15      <dd>The <i>tuple</i> to pop an element from.</dd>
16    </dl>
17    <h4>Remarks</h4>
18    <div style="background-color: white;"> This macro returns <i>tuple</i>
19      after removing the last element.&nbsp; If <i>tuple</i> has only a single
20      element, it remains unchanged since a&nbsp;<i>tuple </i>must have at
21      least one element.</div>
22    <div> This macro uses <b>BOOST_PP_REPEAT</b> internally.&nbsp; Therefore,
23      to use the <i>z</i> parameter passed from other macros that use <b>BOOST_PP_REPEAT</b>,
24      see <b>BOOST_PP_TUPLE_POP_BACK_Z</b> </div>
25    <h4>See Also</h4>
26    <ul>
27      <li><a href="tuple_pop_back_z.html">BOOST_PP_TUPLE_POP_BACK_Z</a></li>
28    </ul>
29    <h4>Requirements</h4>
30    <div> <b>Header:</b> &nbsp;<a href="../headers/tuple/pop_back.html">&lt;boost/preprocessor/tuple/pop_back.hpp&gt;</a>
31    </div>
32    <h4>Sample Code</h4>
33    <div>
34      <pre>#include &lt;<a href="../headers/tuple/pop_back.html">boost/preprocessor/tuple/pop_back.hpp</a>&gt;
35
36#define TUPLE (a, b, c)
37
38<a href="tuple_pop_back.html">BOOST_PP_TUPLE_POP_BACK</a>(TUPLE) // expands to (a, b)
39</pre></div>
40    <hr size="1">
41    <div style="margin-left: 0px;"> <i>� Copyright Edward Diener 2013</i> </div>
42    <div style="margin-left: 0px;">
43      <p><small>Distributed under the Boost Software License, Version 1.0. (See
44          accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
45          or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
46    </div>
47  </body>
48</html>
49