tuple_push_front.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <html>
  2. <head>
  3. <meta content="text/html; charset=windows-1252" http-equiv="content-type">
  4. <title>BOOST_PP_TUPLE_PUSH_FRONT</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_PUSH_FRONT</b> macro
  9. appends an element to the beginning of a <i>tuple</i>.</div>
  10. <h4>Usage</h4>
  11. <div class="code"> <b>BOOST_PP_TUPLE_PUSH_FRONT</b>(<i>tuple</i>, <i>elem</i>)
  12. <a href="../topics/variadic_macros.html#VNotation"><sup>(v)</sup></a></div>
  13. <h4>Arguments</h4>
  14. <dl>
  15. <dt>tuple</dt>
  16. <dd> The <i>tuple</i> to append an element to.</dd>
  17. <dt>elem</dt>
  18. <dd> The element to append. </dd>
  19. </dl>
  20. <h4>Requirements</h4>
  21. <div> <b>Header:</b> &nbsp;<a href="../headers/tuple/push_front.html">&lt;boost/preprocessor/tuple/push_front.hpp&gt;</a>
  22. </div>
  23. <h4>Sample Code</h4>
  24. <div>
  25. <pre>#include &lt;<a href="../headers/tuple/push_front.html">boost/preprocessor/tuple/push_front.hpp</a>&gt;
  26. #define TUPLE (b, c, d)
  27. <a href="tuple_push_front.html">BOOST_PP_TUPLE_PUSH_FRONT</a>(TUPLE, a) // expands to (a, b, c, d)
  28. </pre></div>
  29. <hr size="1">
  30. <div style="margin-left: 0px;"> <i>© Copyright Edward Diener 2013</i> </div>
  31. <div style="margin-left: 0px;">
  32. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  33. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
  34. or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  35. </div>
  36. </body>
  37. </html>