variadic_size.html 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <html>
  2. <head>
  3. <title>BOOST_PP_VARIADIC_SIZE</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_VARIADIC_SIZE</b> variadic macro
  8. expands to the size of the <i>variadic data </i>passed to it. </div>
  9. <h4>Usage</h4>
  10. <div class="code"> <b>BOOST_PP_VARIADIC_SIZE</b>(<i>...</i>) <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a><br>
  11. </div>
  12. <h4>Arguments</h4>
  13. <dl>
  14. <dt>...<br>
  15. </dt>
  16. <dd>&nbsp; <i>Variadic data </i>whose size is to be extracted. </dd>
  17. </dl>
  18. <h4>Requirements</h4>
  19. <div> <b>Header:</b> &nbsp;<a href="../headers/variadic/size.html">&lt;boost/preprocessor/variadic/size.hpp&gt;</a>
  20. </div>
  21. <h4>Sample Code</h4>
  22. <div>
  23. <pre>#include &lt;<a href="../headers/variadic/size.html">boost/preprocessor/variadic/size.hpp</a>&gt;<br><br>#define VAR_DATA x, y, z<br><br><a href="variadic_size.html">BOOST_PP_VARIADIC_SIZE</a>(VAR_DATA) // expands to 3<br></pre>
  24. </div>
  25. <hr size="1">
  26. <div style="margin-left: 0px;"> <i></i><i>© Copyright Edward Diener 2011,2013</i> </div>
  27. <div style="margin-left: 0px;">
  28. <p><small>Distributed under the Boost Software License, Version 1.0.
  29. (See accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
  30. or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  31. </div>
  32. </body>
  33. </html>