3 <meta content=
"text/html; charset=windows-1252" http-equiv=
"content-type">
4 <title>BOOST_PP_TUPLE_REMOVE
</title>
5 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
8 <div style=
"margin-left: 0px;"> The
<b>BOOST_PP_TUPLE_REMOVE
</b> macro
9 removes an element from a
<i>tuple
</i>.
</div>
11 <div class=
"code"> <b>BOOST_PP_TUPLE_REMOVE
</b>(
<i>tuple
</i>,
<i>i
</i>)
<a
12 href=
"../topics/variadic_macros.html#VNotation"><sup>(v)
</sup></a></div>
16 <dd> The
<i>tuple
</i> from which an element is to be removed.
</dd>
18 <dd> The zero-based position in
<i>tuple
</i> of the element to be
19 removed.
Valid values range from
<i>0</i> to
<b>BOOST_PP_TUPLE_SIZE
</b>(
<i>tuple
</i>)
20 -
<i>1</i>. If
<i>tuple
</i> has only a single element, it remains
21 unchanged since a
<i>tuple
</i>must have at least one element.
</dd>
24 <div> This macro uses
<b>BOOST_PP_WHILE
</b> interally.
Therefore, to
25 use the
<i>d
</i> parameter passed from other macros that use
<b>BOOST_PP_WHILE
</b>,
26 see
<b>BOOST_PP_TUPLE_REMOVE_D
</b>.
</div>
29 <li><a href=
"tuple_remove_d.html">BOOST_PP_TUPLE_REMOVE_D
</a></li>
32 <div> <b>Header:
</b> <a href=
"../headers/tuple/remove.html"><boost/preprocessor/tuple/remove.hpp
></a>
36 <pre>#include
<<a href=
"../headers/tuple/remove.html">boost/preprocessor/tuple/remove.hpp
</a>>
38 #define TUPLE (a, b, d)
40 <a href=
"tuple_remove.html">BOOST_PP_TUPLE_REMOVE
</a>(TUPLE,
2) // expands to (a, b)
43 <div style=
"margin-left: 0px;"> <i>© Copyright Edward Diener
2013</i> </div>
44 <div style=
"margin-left: 0px;">
45 <p><small>Distributed under the Boost Software License, Version
1.0. (See
46 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a>
47 or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>