Release 1.39.0
[boost.git] / Boost_1_39_0 / libs / preprocessor / doc / ref / array_replace_d.html
blobe638cce84e2e4a07905052316ecf3c48f551049d
1 <html>
2 <head>
3 <title>BOOST_PP_ARRAY_REPLACE_D</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_ARRAY_REPLACE_D</b> macro replaces an element in an <i>array</i>.&nbsp;
9 It reenters <b>BOOST_PP_WHILE</b> with maximum efficiency.
10 </div>
11 <h4>Usage</h4>
12 <div class="code">
13 <b>BOOST_PP_ARRAY_REPLACE_D</b>(<i>d</i>, <i>array</i>, <i>i</i>, <i>elem</i>)
14 </div>
15 <h4>Arguments</h4>
16 <dl>
17 <dt>d</dt>
18 <dd>
19 The next available <b>BOOST_PP_WHILE</b> iteration.
20 </dd>
21 <dt>array</dt>
22 <dd>
23 An <i>array</i> to replace an element in.
24 </dd>
25 <dt>i</dt>
26 <dd>
27 The zero-based position in <i>array</i> of the element to be replaced.&nbsp;
28 Valid values range from <i>0</i> to <b>BOOST_PP_ARRAY_SIZE</b>(<i>array</i>) - <i>1</i>.
29 </dd>
30 <dt>elem</dt>
31 <dd>
32 The replacement element.
33 </dd>
34 </dl>
35 <h4>See Also</h4>
36 <ul>
37 <li><a href="array_replace.html">BOOST_PP_ARRAY_REPLACE</a></li>
38 </ul>
39 <h4>Requirements</h4>
40 <div>
41 <b>Header:</b> &nbsp;<a href="../headers/array/replace.html">&lt;boost/preprocessor/array/replace.hpp&gt;</a>
42 </div>
43 <hr size="1">
44 <div style="margin-left: 0px;">
45 <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
46 </br><i>© Copyright Paul Mensonides 2002</i>
47 </div>
48 <div style="margin-left: 0px;">
49 <p><small>Distributed under the Boost Software License, Version 1.0. (See
50 accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
51 copy at <a href=
52 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
53 </div>
54 </body>
55 </html>