lparen.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <html>
  2. <head>
  3. <title>BOOST_PP_LPAREN</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_LPAREN</b> macro expands to a left parenthesis.
  9. </div>
  10. <h4>Usage</h4>
  11. <div class="code">
  12. <b>BOOST_PP_LPAREN</b>()
  13. </div>
  14. <h4>Remarks</h4>
  15. <div>
  16. The preprocessor interprets parentheses as delimiters in macro invocations.&nbsp;
  17. Because of this, parentheses require special handling.
  18. </div>
  19. <h4>See Also</h4>
  20. <ul>
  21. <li><a href="rparen.html">BOOST_PP_RPAREN</a></li>
  22. </ul>
  23. <h4>Requirements</h4>
  24. <div>
  25. <b>Header:</b> &nbsp;<a href="../headers/punctuation/paren.html">&lt;boost/preprocessor/punctuation/paren.hpp&gt;</a>
  26. </div>
  27. <h4>Sample Code</h4>
  28. <div><pre>
  29. #include &lt;<a href="../headers/punctuation/paren.html">boost/preprocessor/punctuation/paren.hpp</a>&gt;
  30. #define X(x) x
  31. #define MACRO(p, x) X p x )
  32. MACRO(<a href="lparen.html">BOOST_PP_LPAREN</a>(), abc) // expands to abc
  33. #define Y(x)
  34. MACRO((10) Y <a href="lparen.html">BOOST_PP_LPAREN</a>(), result) // expands to 10
  35. </pre></div>
  36. <hr size="1">
  37. <div style="margin-left: 0px;">
  38. <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
  39. </br><i>© Copyright Paul Mensonides 2002</i>
  40. </div>
  41. <div style="margin-left: 0px;">
  42. <p><small>Distributed under the Boost Software License, Version 1.0. (See
  43. accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
  44. copy at <a href=
  45. "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
  46. </div>
  47. </body>
  48. </html>