Micro template library A library for building device drivers
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

105 lignes
6.7 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>uTL: W:/Work/Software/Libraries/utl/include/utl/concepts/defines.h</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  18. $(document).ready(initResizable);
  19. /* @license-end */</script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/searchdata.js"></script>
  22. <script type="text/javascript" src="search/search.js"></script>
  23. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">uTL
  33. </div>
  34. <div id="projectbrief">micro Template library</div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <!-- end header part -->
  41. <!-- Generated by Doxygen 1.8.14 -->
  42. <script type="text/javascript">
  43. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. /* @license-end */
  46. </script>
  47. <script type="text/javascript" src="menudata.js"></script>
  48. <script type="text/javascript" src="menu.js"></script>
  49. <script type="text/javascript">
  50. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  51. $(function() {
  52. initMenu('',true,false,'search.php','Search');
  53. $(document).ready(function() { init_search(); });
  54. });
  55. /* @license-end */</script>
  56. <div id="main-nav"></div>
  57. </div><!-- top -->
  58. <div id="side-nav" class="ui-resizable side-nav-resizable">
  59. <div id="nav-tree">
  60. <div id="nav-tree-contents">
  61. <div id="nav-sync" class="sync"></div>
  62. </div>
  63. </div>
  64. <div id="splitbar" style="-moz-user-select:none;"
  65. class="ui-resizable-handle">
  66. </div>
  67. </div>
  68. <script type="text/javascript">
  69. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  70. $(document).ready(function(){initNavTree('_w_1_2_work_2_software_2_libraries_2utl_2include_2utl_2concepts_2defines_8h-example.html','');});
  71. /* @license-end */
  72. </script>
  73. <div id="doc-content">
  74. <!-- window showing the filter options -->
  75. <div id="MSearchSelectWindow"
  76. onmouseover="return searchBox.OnSearchSelectShow()"
  77. onmouseout="return searchBox.OnSearchSelectHide()"
  78. onkeydown="return searchBox.OnSearchSelectKey(event)">
  79. </div>
  80. <!-- iframe showing the search results (closed by default) -->
  81. <div id="MSearchResultsWindow">
  82. <iframe src="javascript:void(0)" frameborder="0"
  83. name="MSearchResults" id="MSearchResults">
  84. </iframe>
  85. </div>
  86. <div class="header">
  87. <div class="headertitle">
  88. <div class="title">W:/Work/Software/Libraries/utl/include/utl/concepts/defines.h</div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <p>utl typename constraints wrapper</p><div class="fragment"><div class="line"><span class="keyword">template</span> &lt;utlConstrainType(SomeConcept) T&gt; <span class="keyword">struct </span>lala { };</div><div class="line"><span class="comment">// will expand to something like:</span></div><div class="line"><span class="comment">// template &lt;SomeConcept T&gt; struct lala { };</span></div><div class="line"><span class="comment">// or</span></div><div class="line"><span class="comment">// template &lt;typename T&gt; struct lala { };</span></div></div><!-- fragment --><div class="fragment"><div class="line"></div><div class="line"><span class="preprocessor">#ifndef __utl_concepts_defines_h__</span></div><div class="line"><span class="preprocessor">#define __utl_concepts_defines_h__</span></div><div class="line"></div><div class="line"></div><div class="line"><span class="preprocessor">#if CXX_CONCEPTS</span></div><div class="line"><span class="preprocessor"> #define utlConstrainType(_Concept_) _Concept_</span></div><div class="line"><span class="preprocessor">#else</span></div><div class="line"><span class="preprocessor"> #define utlConstrainType(_Concept_) typename</span></div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"></div><div class="line"><span class="preprocessor">#if CXX_CONCEPTS</span></div><div class="line"><span class="preprocessor"> #if __cpp_concepts &lt;= 201507L</span></div><div class="line"><span class="preprocessor"> #define _utlConcept concept bool</span></div><div class="line"><span class="preprocessor"> #else</span></div><div class="line"><span class="preprocessor"> #define _utlConcept concept</span></div><div class="line"><span class="preprocessor"> #endif</span></div><div class="line"><span class="preprocessor">#else</span></div><div class="line"><span class="preprocessor"> #define _utlConcept constexpr bool</span></div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"></div><div class="line"><span class="preprocessor">#ifndef CXX_LIB_INVOKE</span></div><div class="line"><span class="preprocessor"> #ifdef __cpp_lib_invoke</span></div><div class="line"><span class="preprocessor"> #define CXX_LIB_INVOKE __cpp_lib_invoke</span></div><div class="line"><span class="preprocessor"> #else</span></div><div class="line"><span class="preprocessor"> #define CXX_LIB_INVOKE 0</span></div><div class="line"><span class="preprocessor"> #endif</span></div><div class="line"><span class="preprocessor">#endif</span></div><div class="line"></div><div class="line"></div><div class="line"><span class="preprocessor">#endif </span><span class="comment">/* __utl_concepts_defines_h__ */</span><span class="preprocessor"></span></div></div><!-- fragment --> </div><!-- contents -->
  92. </div><!-- doc-content -->
  93. <!-- start footer part -->
  94. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  95. <ul>
  96. <li class="footer">Generated by
  97. <a href="http://www.doxygen.org/index.html">
  98. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  99. </ul>
  100. </div>
  101. </body>
  102. </html>