Micro template library A library for building device drivers
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

188 líneas
17 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: include/utl/meta/detection.h File Reference</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('detection_8h.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="summary">
  88. <a href="#nested-classes">Classes</a> &#124;
  89. <a href="#namespaces">Namespaces</a> &#124;
  90. <a href="#typedef-members">Typedefs</a> </div>
  91. <div class="headertitle">
  92. <div class="title">detection.h File Reference</div> </div>
  93. </div><!--header-->
  94. <div class="contents">
  95. <p>Detection idiom based on WG21's N4502 [<a class="el" href="detection_8h.html#n4502">n4502</a> 1] from Walter E. Brown.
  96. <a href="#details">More...</a></p>
  97. <div class="textblock"><code>#include &lt;<a class="el" href="impl_8h_source.html">utl/core/impl.h</a>&gt;</code><br />
  98. <code>#include &lt;<a class="el" href="operations_8h_source.html">utl/meta/operations.h</a>&gt;</code><br />
  99. <code>#include &lt;type_traits&gt;</code><br />
  100. </div>
  101. <p><a href="detection_8h_source.html">Go to the source code of this file.</a></p>
  102. <table class="memberdecls">
  103. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  104. Classes</h2></td></tr>
  105. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1meta_1_1nat__.html">utl::meta::nat_</a></td></tr>
  106. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1meta_1_1detail_1_1detector.html">utl::meta::detail::detector&lt; Default, AlwaysVoid, Op, Args &gt;</a></td></tr>
  108. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1meta_1_1detail_1_1detector_3_01_default_00_01void__t_3_01_op_3_01_args_8_8_8_01_4_0c35bdbd19f56980c0b5ee6d490bfb634.html">utl::meta::detail::detector&lt; Default, void_t&lt; Op&lt; Args... &gt; &gt;, Op, Args... &gt;</a></td></tr>
  110. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. </table><table class="memberdecls">
  112. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
  113. Namespaces</h2></td></tr>
  114. <tr class="memitem:namespaceutl"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl.html">utl</a></td></tr>
  115. <tr class="memdesc:namespaceutl"><td class="mdescLeft">&#160;</td><td class="mdescRight">STL's core language concepts. <br /></td></tr>
  116. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:namespaceutl_1_1meta"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html">utl::meta</a></td></tr>
  118. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:namespaceutl_1_1meta_1_1detail"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta_1_1detail.html">utl::meta::detail</a></td></tr>
  120. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. </table><table class="memberdecls">
  122. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
  123. Typedefs</h2></td></tr>
  124. <tr class="memitem:gac16d50de47cf57734433e9ea636522c5"><td class="memTemplParams" colspan="2">template&lt;typename... &gt; </td></tr>
  125. <tr class="memitem:gac16d50de47cf57734433e9ea636522c5"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__detection.html#gac16d50de47cf57734433e9ea636522c5">utl::meta::void_</a> = void</td></tr>
  126. <tr class="memdesc:gac16d50de47cf57734433e9ea636522c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">void_ type alias <a href="group__detection.html#gac16d50de47cf57734433e9ea636522c5">More...</a><br /></td></tr>
  127. <tr class="separator:gac16d50de47cf57734433e9ea636522c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:gae7373c997420d16cf37e542eb3cfa3ad"><td class="memTemplParams" colspan="2">template&lt;typename... &gt; </td></tr>
  129. <tr class="memitem:gae7373c997420d16cf37e542eb3cfa3ad"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">utl::meta::void_t</a> = void</td></tr>
  130. <tr class="memdesc:gae7373c997420d16cf37e542eb3cfa3ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">void_t type alias <a href="group__detection.html#gae7373c997420d16cf37e542eb3cfa3ad">More...</a><br /></td></tr>
  131. <tr class="separator:gae7373c997420d16cf37e542eb3cfa3ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:a835827cb3116483228d6f7f774b68970"><td class="memTemplParams" colspan="2">template&lt;typename Default , template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  133. <tr class="memitem:a835827cb3116483228d6f7f774b68970"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta_1_1detail.html#a835827cb3116483228d6f7f774b68970">utl::meta::detail::detected_or</a> = detector&lt; Default, void, Op, Args... &gt;</td></tr>
  134. <tr class="memdesc:a835827cb3116483228d6f7f774b68970"><td class="mdescLeft">&#160;</td><td class="mdescRight">helper for detected_or_t <a href="namespaceutl_1_1meta_1_1detail.html#a835827cb3116483228d6f7f774b68970">More...</a><br /></td></tr>
  135. <tr class="separator:a835827cb3116483228d6f7f774b68970"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a5329219a9d2f195421a78d8e07873507"><td class="memTemplParams" colspan="2">template&lt;template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  137. <tr class="memitem:a5329219a9d2f195421a78d8e07873507"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#a5329219a9d2f195421a78d8e07873507">utl::meta::is_detected</a> = typename detail::detector&lt; nat_, void, Op, Args... &gt;::detected</td></tr>
  138. <tr class="separator:a5329219a9d2f195421a78d8e07873507"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:aa654a286b3bc8e6d8116ee1f57087110"><td class="memTemplParams" colspan="2">template&lt;template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  140. <tr class="memitem:aa654a286b3bc8e6d8116ee1f57087110"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#aa654a286b3bc8e6d8116ee1f57087110">utl::meta::detected_t</a> = eval&lt; detail::detector&lt; nat_, void, Op, Args... &gt; &gt;</td></tr>
  141. <tr class="separator:aa654a286b3bc8e6d8116ee1f57087110"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:a8fd055bc6c6c3b1d551e9605aa35644c"><td class="memTemplParams" colspan="2">template&lt;typename Default , template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  143. <tr class="memitem:a8fd055bc6c6c3b1d551e9605aa35644c"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#a8fd055bc6c6c3b1d551e9605aa35644c">utl::meta::detected_or_t</a> = eval&lt; detail::detected_or&lt; Default, Op, Args... &gt; &gt;</td></tr>
  144. <tr class="separator:a8fd055bc6c6c3b1d551e9605aa35644c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:ad5224ef66e8f40efaaf3ad3d605dd629"><td class="memTemplParams" colspan="2">template&lt;typename Expected , template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  146. <tr class="memitem:ad5224ef66e8f40efaaf3ad3d605dd629"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#ad5224ef66e8f40efaaf3ad3d605dd629">utl::meta::is_detected_exact</a> = eval&lt; same_&lt; Expected, detected_t&lt; Op, Args... &gt; &gt; &gt;</td></tr>
  147. <tr class="separator:ad5224ef66e8f40efaaf3ad3d605dd629"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:afa24702fa15a1d0a8a05761c54b79def"><td class="memTemplParams" colspan="2">template&lt;typename To , template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  149. <tr class="memitem:afa24702fa15a1d0a8a05761c54b79def"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#afa24702fa15a1d0a8a05761c54b79def">utl::meta::is_detected_convertible</a> = eval&lt; std::is_convertible&lt; detected_t&lt; Op, Args... &gt;, To &gt; &gt;</td></tr>
  150. <tr class="separator:afa24702fa15a1d0a8a05761c54b79def"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a4f3184ccb8e8ba2a78e2d2e83a0b9885"><td class="memTemplParams" colspan="2">template&lt;template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  152. <tr class="memitem:a4f3184ccb8e8ba2a78e2d2e83a0b9885"><td class="memTemplItemLeft" align="right" valign="top">constexpr bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#a4f3184ccb8e8ba2a78e2d2e83a0b9885">utl::meta::is_detected_v</a> = is_detected&lt;Op, Args...&gt;::value</td></tr>
  153. <tr class="memdesc:a4f3184ccb8e8ba2a78e2d2e83a0b9885"><td class="mdescLeft">&#160;</td><td class="mdescRight">Detection predicate. <a href="namespaceutl_1_1meta.html#a4f3184ccb8e8ba2a78e2d2e83a0b9885">More...</a><br /></td></tr>
  154. <tr class="separator:a4f3184ccb8e8ba2a78e2d2e83a0b9885"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a960827a1d72083a511f8ea4ccc8beceb"><td class="memTemplParams" colspan="2">template&lt;typename Expected , template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  156. <tr class="memitem:a960827a1d72083a511f8ea4ccc8beceb"><td class="memTemplItemLeft" align="right" valign="top">constexpr bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#a960827a1d72083a511f8ea4ccc8beceb">utl::meta::is_detected_exact_v</a> = is_detected_exact&lt; Expected, Op, Args...&gt;::value</td></tr>
  157. <tr class="memdesc:a960827a1d72083a511f8ea4ccc8beceb"><td class="mdescLeft">&#160;</td><td class="mdescRight">evaluates to true if evaluation of Op&lt;Args...&gt; is <code>Expected</code> and to false if not <a href="namespaceutl_1_1meta.html#a960827a1d72083a511f8ea4ccc8beceb">More...</a><br /></td></tr>
  158. <tr class="separator:a960827a1d72083a511f8ea4ccc8beceb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:acba521b528e775be4b37d2e481e0f138"><td class="memTemplParams" colspan="2">template&lt;typename To , template&lt; typename... &gt; class Op, typename... Args&gt; </td></tr>
  160. <tr class="memitem:acba521b528e775be4b37d2e481e0f138"><td class="memTemplItemLeft" align="right" valign="top">constexpr bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1meta.html#acba521b528e775be4b37d2e481e0f138">utl::meta::is_detected_convertible_v</a></td></tr>
  161. <tr class="separator:acba521b528e775be4b37d2e481e0f138"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. </table>
  163. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  164. <div class="textblock"><p>Detection idiom based on WG21's N4502 [<a class="el" href="detection_8h.html#n4502">n4502</a> 1] from Walter E. Brown. </p>
  165. <p><a class="anchor" id="n4502"></a>[1]: www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4502.pdf</p>
  166. <p>Copyright (C) 2018-2019 Christos Choutouridis</p>
  167. <p>This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
  168. <p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p>
  169. <p>You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>
  170. <p class="definition">Definition in file <a class="el" href="detection_8h_source.html">detection.h</a>.</p>
  171. </div></div><!-- contents -->
  172. </div><!-- doc-content -->
  173. <!-- start footer part -->
  174. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  175. <ul>
  176. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_82754f54d9380477ef02477185c1f103.html">utl</a></li><li class="navelem"><a class="el" href="dir_c6a55aeb35dd92d90cdd3b5869981960.html">meta</a></li><li class="navelem"><a class="el" href="detection_8h.html">detection.h</a></li>
  177. <li class="footer">Generated by
  178. <a href="http://www.doxygen.org/index.html">
  179. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  180. </ul>
  181. </div>
  182. </body>
  183. </html>