tuple_enum.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <html>
  2. <head>
  3. <title>BOOST_PP_TUPLE_ENUM</title>
  4. <link rel="stylesheet" type="text/css" href="../styles.css">
  5. </head>
  6. <body>
  7. <div style="margin-left: 0px;"> The <b>BOOST_PP_TUPLE_ENUM</b> macro&nbsp;converts a <i>tuple</i> to its comma-separated elements. The comma-separated elements are in the form of <i>variadic data</i>. </div>
  8. <h4> Usage </h4>
  9. <div class="code"> <b>BOOST_PP_TUPLE_ENUM</b>(<i>size,tuple</i>)<br>
  10. <br>
  11. or<br>
  12. <br>
  13. <b>BOOST_PP_TUPLE_ENUM</b>(<i>...</i>) <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a><b></b><br>
  14. </div>
  15. <h4> Arguments </h4>
  16. <dl>
  17. <dt>size</dt>
  18. <dd>
  19. The size of the <i>tuple</i>.&nbsp;
  20. Valid <i>tuple</i> sizes range from <i>1</i> to <b>BOOST_PP_LIMIT_TUPLE</b>. <br>
  21. </dd>
  22. <dt>tuple</dt>
  23. <dd> The <i>tuple</i> whose elements are to be converted. </dd>
  24. </dl>
  25. <h4> Remarks </h4>
  26. <div>
  27. <br>You can
  28. invoke the variadic version <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a> as BOOST_PP_TUPLE_ENUM(<i>tuple</i>) or
  29. BOOST_PP_TUPLE_ENUM(<i>size</i>,<i>tuple</i>).<br>
  30. </div>
  31. <h4>See Also</h4>
  32. <ul>
  33. <li><a href="limit_tuple.html">BOOST_PP_LIMIT_TUPLE</a><br>
  34. </li>
  35. </ul>
  36. <h4> Requirements </h4>
  37. <div> <b>Header:</b> &nbsp;<a href="../headers/tuple/enum.html">&lt;boost/preprocessor/tuple/enum.hpp&gt;</a>
  38. </div>
  39. <h4> Sample Code </h4>
  40. <div>
  41. <pre>#include &lt;<a href="../headers/tuple/enum.html">boost/preprocessor/tuple/enum.hpp</a>&gt;<br><br>#define TUPLE (B,O,O,S,T)<br><br><a href="tuple_enum.html">BOOST_PP_TUPLE_ENUM</a>(5,TUPLE) // expands to B, O, O, S, T<br><br>// or for the variadic version <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a><br><br><a href="tuple_enum.html">BOOST_PP_TUPLE_ENUM</a>(TUPLE) // expands to B, O, O, S, T<br></pre>
  42. </div>
  43. <hr size="1">
  44. <div style="margin-left: 0px;"> <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  45. <br>
  46. <i>© Copyright Paul Mensonides 2002<br>
  47. </i><i>© Copyright Edward Diener 2011,2013</i><br>
  48. </div>
  49. <div style="margin-left: 0px;">
  50. <p><small>Distributed under the Boost Software License, Version 1.0.
  51. (See accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
  52. or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  53. </div>
  54. </body>
  55. </html>