tuple_replace_d.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <html>
  2. <head>
  3. <meta content="text/html; charset=windows-1252" http-equiv="content-type">
  4. <title>BOOST_PP_TUPLE_REPLACE_D</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_REPLACE_D</b> macro
  9. replaces an element in a <i>tuple</i>.&nbsp; It reenters <b>BOOST_PP_WHILE</b>
  10. with maximum efficiency.</div>
  11. <h4>Usage</h4>
  12. <div class="code"> <b>BOOST_PP_TUPLE_REPLACE_D</b>(<i>d</i>, <i>tuple</i>,
  13. <i>i</i>, <i>elem</i>) <a href="../topics/variadic_macros.html#VNotation"><sup>(v)</sup></a></div>
  14. <h4>Arguments</h4>
  15. <dl>
  16. <dt>d</dt>
  17. <dd> The next available <b>BOOST_PP_WHILE</b> iteration. </dd>
  18. <dt>tuple</dt>
  19. <dd> A <i>tuple</i> to replace an element in. </dd>
  20. <dt>i</dt>
  21. <dd> The zero-based position in <i>tuple</i> of the element to be
  22. replaced.&nbsp; Valid values range from <i>0</i> to <b>BOOST_PP_TUPLE_SIZE</b>(<i>tuple</i>)
  23. - <i>1</i>. </dd>
  24. <dt>elem</dt>
  25. <dd> The replacement element. </dd>
  26. </dl>
  27. <h4>See Also</h4>
  28. <ul>
  29. <li><a href="tuple_replace.html">BOOST_PP_TUPLE_REPLACE</a></li>
  30. </ul>
  31. <h4>Requirements</h4>
  32. <div> <b>Header:</b> &nbsp;<a href="../headers/tuple/replace.html">&lt;boost/preprocessor/tuple/replace.hpp&gt;</a>
  33. </div>
  34. <hr size="1">
  35. <div style="margin-left: 0px;"> <i>© Copyright Edward Diener 2013</i> </div>
  36. <div style="margin-left: 0px;">
  37. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  38. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
  39. or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  40. </div>
  41. </body>
  42. </html>