array_to_tuple.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <html>
  2. <head>
  3. <meta content="text/html; charset=windows-1252" http-equiv="content-type">
  4. <title>BOOST_PP_ARRAY_TO_TUPLE</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_ARRAY_TO_TUPLE</b> macro
  9. converts an <i>array</i> to an <i>tuple</i>. </div>
  10. <h4> Usage </h4>
  11. <div class="code"> <b>BOOST_PP_ARRAY_TO_TUPLE</b>(<i>array</i>) </div>
  12. <h4> Arguments </h4>
  13. <dl>
  14. <dt>array</dt>
  15. <dd> The <i>array</i> to be converted.</dd>
  16. </dl>
  17. <h4>Remarks</h4>
  18. <p>&nbsp;&nbsp;&nbsp; If the <i>array</i> to be converted is empty, as
  19. represented by '( 0, () )', the resulting <i>tuple</i> is undefined
  20. since a <i>tuple</i> cannot be empty.</p>
  21. <h4>Requirements </h4>
  22. <div> <b>Header:</b> &nbsp;<a href="../headers/array/to_tuple.html">&lt;boost/preprocessor/array/to_tuple.hpp&gt;</a>
  23. </div>
  24. <h4> Sample Code </h4>
  25. <div>
  26. <pre>#include &lt;<a href="../headers/array/to_tuple.html">boost/preprocessor/array/to_tuple.hpp</a>&gt;<br><br>#define ARRAY (3,(a, b, c))<br><br><a
  27. href="array_to_tuple.html">BOOST_PP_ARRAY_TO_TUPLE</a>(ARRAY) // expands to (a, b, c)</pre>
  28. </div>
  29. <hr size="1">
  30. <div style="margin-left: 0px;"> <i></i><i>© Copyright Edward Diener 2011</i>
  31. </div>
  32. <div style="margin-left: 0px;">
  33. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  34. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
  35. or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  36. </div>
  37. </body>
  38. </html>