array_size.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <html>
  2. <head>
  3. <title>BOOST_PP_ARRAY_SIZE</title>
  4. <link rel="stylesheet" type="text/css" href="../styles.css">
  5. </head>
  6. <body>
  7. <div style="margin-left: 0px;">
  8. The <b>BOOST_PP_ARRAY_SIZE</b> macro expands to the size of the <i>array</i> passed to it.
  9. </div>
  10. <h4>Usage</h4>
  11. <div class="code">
  12. <b>BOOST_PP_ARRAY_SIZE</b>(<i>array</i>)
  13. </div>
  14. <h4>Arguments</h4>
  15. <dl>
  16. <dt>array</dt>
  17. <dd>
  18. An <i>array</i> whose size is to be extracted.
  19. </dd>
  20. </dl>
  21. <h4>Requirements</h4>
  22. <div>
  23. <b>Header:</b> &nbsp;<a href="../headers/array/size.html">&lt;boost/preprocessor/array/size.hpp&gt;</a>
  24. </div>
  25. <h4>Sample Code</h4>
  26. <div><pre>
  27. #include &lt;<a href="../headers/array/size.html">boost/preprocessor/array/size.hpp</a>&gt;
  28. #define ARRAY (3, (x, y, z))
  29. <a href="array_size.html">BOOST_PP_ARRAY_SIZE</a>(ARRAY) // expands to 3
  30. </pre></div>
  31. <hr size="1">
  32. <div style="margin-left: 0px;">
  33. <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  34. </br><i>© Copyright Paul Mensonides 2002</i>
  35. </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> or
  39. copy at <a href=
  40. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  41. </div>
  42. </body>
  43. </html>