comma.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <html>
  2. <head>
  3. <title>BOOST_PP_COMMA</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_COMMA</b> macro expands to a comma.
  9. </div>
  10. <h4>Usage</h4>
  11. <div class="code">
  12. <b>BOOST_PP_COMMA</b>()
  13. </div>
  14. <h4>Remarks</h4>
  15. <div>
  16. The preprocessor interprets commas as argument separators in macro invocations.&nbsp;
  17. Because of this, commas require special handling.
  18. </div>
  19. <h4>Requirements</h4>
  20. <div>
  21. <b>Header:</b> &nbsp;<a href="../headers/punctuation/comma.html">&lt;boost/preprocessor/punctuation/comma.hpp&gt;</a>
  22. </div>
  23. <h4>Sample Code</h4>
  24. <div><pre>
  25. #include &lt;<a href="../headers/control/if.html">boost/preprocessor/control/if.hpp</a>&gt;
  26. #include &lt;<a href="../headers/facilities/empty.html">boost/preprocessor/facilities/empty.hpp</a>&gt;
  27. #include &lt;<a href="../headers/punctuation/comma.html">boost/preprocessor/punctuation/comma.hpp</a>&gt;
  28. <a href="if.html">BOOST_PP_IF</a>(1, <a href="comma.html">BOOST_PP_COMMA</a>, <a href="empty.html">BOOST_PP_EMPTY</a>)() // expands to ,
  29. </pre></div>
  30. <hr size="1">
  31. <div style="margin-left: 0px;">
  32. <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  33. </br><i>© Copyright Paul Mensonides 2002</i>
  34. </div>
  35. <div style="margin-left: 0px;">
  36. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  37. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
  38. copy at <a href=
  39. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  40. </div>
  41. </body>
  42. </html>