3 <title>BOOST_PP_SEQ_REPLACE
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_SEQ_REPLACE
</b> macro replaces an element in a
<i>seq
</i>.
14 <b>BOOST_PP_SEQ_REPLACE
</b>(
<i>seq
</i>,
<i>i
</i>,
<i>elem
</i>)
22 The
<i>seq
</i> in which an element is to be replaced.
26 The zero-based position in
<i>seq
</i> of the element to be replaced.
27 Valid values range from
<i>0</i> to
<b>BOOST_PP_SEQ_SIZE
</b>(
<i>seq
</i>) -
<i>1</i>.
31 The element to replace the element at index
<i>i
</i> within
<i>seq
</i>.
38 This macro returns
<i>seq
</i> after replacing the element at index
<i>i
</i> with
45 <b>Header:
</b> <a href=
"../headers/seq/replace.html"><boost/preprocessor/seq/replace.hpp
></a>
52 #include
<<a href=
"../headers/seq/replace.html">boost/preprocessor/seq/replace.hpp
</a>>
54 #define SEQ (a)(b)(x)(d)
56 <a href=
"seq_replace.html">BOOST_PP_SEQ_REPLACE
</a>(SEQ,
2, c) // expands to (a)(b)(c)(d)
60 <div style=
"margin-left: 0px;">
61 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
62 </br><i>© Copyright Paul Mensonides
2002</i>
64 <div style=
"margin-left: 0px;">
65 <p><small>Distributed under the Boost Software License, Version
1.0. (See
66 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
68 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>