Brian Silverman | f27e085 | 2018-08-04 23:56:45 -0700 | [diff] [blame^] | 1 | <html> |
| 2 | <head> |
| 3 | <title>BOOST_PP_SEQ_PUSH_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_SEQ_PUSH_BACK</b> macro pushes an element onto the end of a <i>seq</i>. |
| 9 | </div> |
| 10 | <h4> |
| 11 | Usage |
| 12 | </h4> |
| 13 | <div class="code"> |
| 14 | <b>BOOST_PP_SEQ_PUSH_BACK</b>(<i>seq</i>, <i>elem</i>) |
| 15 | </div> |
| 16 | <h4> |
| 17 | Arguments |
| 18 | </h4> |
| 19 | <dl> |
| 20 | <dt>seq</dt> |
| 21 | <dd> |
| 22 | The <i>seq</i> onto which <i>elem</i> is pushed. |
| 23 | </dd> |
| 24 | <dt>elem</dt> |
| 25 | <dd> |
| 26 | The element to push onto the end of <i>seq</i>. |
| 27 | </dd> |
| 28 | </dl> |
| 29 | <h4> |
| 30 | Remarks |
| 31 | </h4> |
| 32 | <div> |
| 33 | This macro returns <i>seq</i> after appending <i>elem</i>. |
| 34 | </div> |
| 35 | <div> |
| 36 | This macro is an explicit form of directly appending an element. In other |
| 37 | words, <b>BOOST_PP_SEQ_PUSH_BACK</b>(<i>seq</i>, <i>x</i>) is equivalent to <i>seq</i>(<i>x</i>). |
| 38 | </div> |
| 39 | <h4> |
| 40 | See Also |
| 41 | </h4> |
| 42 | <ul> |
| 43 | <li> |
| 44 | <a href="seq_push_front.html">BOOST_PP_SEQ_PUSH_FRONT</a></li> |
| 45 | </ul> |
| 46 | <h4> |
| 47 | Requirements |
| 48 | </h4> |
| 49 | <div> |
| 50 | <b>Header:</b> <a href="../headers/seq/push_back.html"><boost/preprocessor/seq/push_back.hpp></a> |
| 51 | </div> |
| 52 | <h4> |
| 53 | Sample Code |
| 54 | </h4> |
| 55 | <div> |
| 56 | <pre> |
| 57 | #include <<a href="../headers/seq/push_back.html">boost/preprocessor/seq/push_back.hpp</a>> |
| 58 | |
| 59 | #define SEQ (a)(b) |
| 60 | |
| 61 | <a href="seq_push_back.html">BOOST_PP_SEQ_PUSH_BACK</a>(SEQ, c) // expands to (a)(b)(c) |
| 62 | </pre> |
| 63 | </div> |
| 64 | <hr size="1"> |
| 65 | <div style="margin-left: 0px;"> |
| 66 | <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i> |
| 67 | </br><i>© Copyright Paul Mensonides 2002</i> |
| 68 | </div> |
| 69 | <div style="margin-left: 0px;"> |
| 70 | <p><small>Distributed under the Boost Software License, Version 1.0. (See |
| 71 | accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or |
| 72 | copy at <a href= |
| 73 | "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p> |
| 74 | </div> |
| 75 | </body> |
| 76 | </html> |