1<html> 2 <head> 3 <title>BOOST_PP_SEQ_INSERT</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_INSERT</b> macro inserts an element into an <i>seq</i>. 9 </div> 10 <h4> 11 Usage 12 </h4> 13 <div class="code"> 14 <b>BOOST_PP_SEQ_INSERT</b>(<i>seq</i>, <i>i</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> into which an element is to be inserted. 23 </dd> 24 <dt>i</dt> 25 <dd> 26 The zero-based position in <i>seq</i> where an element is to be inserted. 27 Valid values range from <i>0</i> to <b>BOOST_PP_SEQ_SIZE</b>(<i>seq</i>) - <i>1</i>. 28 </dd> 29 <dt>elem</dt> 30 <dd> 31 The element to insert. 32 </dd> 33 </dl> 34 <h4> 35 Remarks 36 </h4> 37 <div> 38 This macro inserts <i>elem</i> before the element at index <i>i</i>. 39 </div> 40 <h4> 41 Requirements 42 </h4> 43 <div> 44 <b>Header:</b> <a href="../headers/seq/insert.html"><boost/preprocessor/seq/insert.hpp></a> 45 </div> 46 <h4> 47 Sample Code 48 </h4> 49 <div> 50 <pre> 51#include <<a href="../headers/seq/insert.html">boost/preprocessor/seq/insert.hpp</a>> 52 53#define SEQ (a)(b)(d) 54 55<a href="seq_insert.html">BOOST_PP_SEQ_INSERT</a>(SEQ, 2, c) // expands to (a)(b)(c)(d) 56</pre> 57 </div> 58 <hr size="1"> 59 <div style="margin-left: 0px;"> 60 <i>� Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i> 61 </br><i>� Copyright Paul Mensonides 2002</i> 62 </div> 63 <div style="margin-left: 0px;"> 64 <p><small>Distributed under the Boost Software License, Version 1.0. (See 65 accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or 66 copy at <a href= 67 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p> 68 </div> 69 </body> 70</html> 71