Brian Silverman | f27e085 | 2018-08-04 23:56:45 -0700 | [diff] [blame^] | 1 | <html> |
| 2 | <head> |
| 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"> |
| 6 | </head> |
| 7 | <body> |
| 8 | <div style="margin-left: 0px;"> The <b>BOOST_PP_TUPLE_REMOVE</b> macro |
| 9 | removes an element from a <i>tuple</i>.</div> |
| 10 | <h4>Usage</h4> |
| 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> |
| 13 | <h4>Arguments</h4> |
| 14 | <dl> |
| 15 | <dt>tuple</dt> |
| 16 | <dd> The <i>tuple</i> from which an element is to be removed.</dd> |
| 17 | <dt>i</dt> |
| 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> |
| 22 | </dl> |
| 23 | <h4>Remarks</h4> |
| 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> |
| 27 | <h4>See Also</h4> |
| 28 | <ul> |
| 29 | <li><a href="tuple_remove_d.html">BOOST_PP_TUPLE_REMOVE_D</a></li> |
| 30 | </ul> |
| 31 | <h4>Requirements</h4> |
| 32 | <div> <b>Header:</b> <a href="../headers/tuple/remove.html"><boost/preprocessor/tuple/remove.hpp></a> |
| 33 | </div> |
| 34 | <h4>Sample Code</h4> |
| 35 | <div> |
| 36 | <pre>#include <<a href="../headers/tuple/remove.html">boost/preprocessor/tuple/remove.hpp</a>> |
| 37 | |
| 38 | #define TUPLE (a, b, d) |
| 39 | |
| 40 | <a href="tuple_remove.html">BOOST_PP_TUPLE_REMOVE</a>(TUPLE, 2) // expands to (a, b) |
| 41 | </pre></div> |
| 42 | <hr size="1"> |
| 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> |
| 48 | </div> |
| 49 | </body> |
| 50 | </html> |