Micro template library A library for building device drivers
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

247 linhas
15 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: operators</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('group__integral.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="#namespaces">Namespaces</a> &#124;
  89. <a href="#nested-classes">Classes</a> &#124;
  90. <a href="#typedef-members">Typedefs</a> </div>
  91. <div class="headertitle">
  92. <div class="title">operators</div> </div>
  93. </div><!--header-->
  94. <div class="contents">
  95. <table class="memberdecls">
  96. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
  97. Namespaces</h2></td></tr>
  98. <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>
  99. <tr class="memdesc:namespaceutl"><td class="mdescLeft">&#160;</td><td class="mdescRight">STL's core language concepts. <br /></td></tr>
  100. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <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>
  102. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. </table><table class="memberdecls">
  104. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  105. Classes</h2></td></tr>
  106. <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_1same__.html">utl::meta::same_&lt; _T1, _T2 &gt;</a></td></tr>
  107. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <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_1same___3_01___tp_00_01___tp_01_4.html">utl::meta::same_&lt; _Tp, _Tp &gt;</a></td></tr>
  109. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. </table><table class="memberdecls">
  111. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
  112. Typedefs</h2></td></tr>
  113. <tr class="memitem:ga7de987520bd0973f03ff8bab3152361a"><td class="memTemplParams" colspan="2">template&lt;bool B&gt; </td></tr>
  114. <tr class="memitem:ga7de987520bd0973f03ff8bab3152361a"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">utl::meta::not_c</a> = <a class="el" href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6">bool_</a>&lt;!B &gt;</td></tr>
  115. <tr class="memdesc:ga7de987520bd0973f03ff8bab3152361a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Negate the <em>bool</em> constant parameter. <a href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">More...</a><br /></td></tr>
  116. <tr class="separator:ga7de987520bd0973f03ff8bab3152361a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:ga16df145331d3c62e624385c5949d90c4"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
  118. <tr class="memitem:ga16df145331d3c62e624385c5949d90c4"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">utl::meta::not_</a> = <a class="el" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c</a>&lt; _Tp::type::value &gt;</td></tr>
  119. <tr class="memdesc:ga16df145331d3c62e624385c5949d90c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">not <a href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">More...</a><br /></td></tr>
  120. <tr class="separator:ga16df145331d3c62e624385c5949d90c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:gac43f400cc93d54f5f79892e618069d9b"><td class="memTemplParams" colspan="2">template&lt;typename... _Ts&gt; </td></tr>
  122. <tr class="memitem:gac43f400cc93d54f5f79892e618069d9b"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">utl::meta::or_</a> = <a class="el" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt; <a class="el" href="structutl_1_1meta_1_1detail_1_1__or__.html">detail::_or_</a>&lt; _Ts... &gt; &gt;</td></tr>
  123. <tr class="separator:gac43f400cc93d54f5f79892e618069d9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:ga8e82f4758321e0e0b3705607f7d8e068"><td class="memTemplParams" colspan="2">template&lt;typename... _Ts&gt; </td></tr>
  125. <tr class="memitem:ga8e82f4758321e0e0b3705607f7d8e068"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">utl::meta::and_</a> = <a class="el" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt; <a class="el" href="structutl_1_1meta_1_1detail_1_1__and__.html">detail::_and_</a>&lt; _Ts... &gt; &gt;</td></tr>
  126. <tr class="separator:ga8e82f4758321e0e0b3705607f7d8e068"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:ga4dfaf054d891eb35d741662b077bbbd2"><td class="memTemplParams" colspan="2">template&lt;typename _T1 , typename _T2 &gt; </td></tr>
  128. <tr class="memitem:ga4dfaf054d891eb35d741662b077bbbd2"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__integral.html#ga4dfaf054d891eb35d741662b077bbbd2">utl::meta::not_same_</a> = <a class="el" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_</a>&lt; <a class="el" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt; <a class="el" href="structutl_1_1meta_1_1same__.html">same_</a>&lt; _T1, _T2 &gt; &gt;&gt;</td></tr>
  129. <tr class="separator:ga4dfaf054d891eb35d741662b077bbbd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. </table>
  131. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  132. <p>integral constant support header</p>
  133. <p>Type arithmetic and operators </p>
  134. <h2 class="groupheader">Typedef Documentation</h2>
  135. <a id="ga8e82f4758321e0e0b3705607f7d8e068"></a>
  136. <h2 class="memtitle"><span class="permalink"><a href="#ga8e82f4758321e0e0b3705607f7d8e068">&#9670;&nbsp;</a></span>and_</h2>
  137. <div class="memitem">
  138. <div class="memproto">
  139. <div class="memtemplate">
  140. template&lt;typename... _Ts&gt; </div>
  141. <table class="memname">
  142. <tr>
  143. <td class="memname">using <a class="el" href="group__integral.html#ga8e82f4758321e0e0b3705607f7d8e068">utl::meta::and_</a> = typedef <a class="el" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt;<a class="el" href="structutl_1_1meta_1_1detail_1_1__and__.html">detail::_and_</a>&lt;_Ts...&gt; &gt;</td>
  144. </tr>
  145. </table>
  146. </div><div class="memdoc">
  147. <p class="definition">Definition at line <a class="el" href="operations_8h_source.html#l00096">96</a> of file <a class="el" href="operations_8h_source.html">operations.h</a>.</p>
  148. </div>
  149. </div>
  150. <a id="ga16df145331d3c62e624385c5949d90c4"></a>
  151. <h2 class="memtitle"><span class="permalink"><a href="#ga16df145331d3c62e624385c5949d90c4">&#9670;&nbsp;</a></span>not_</h2>
  152. <div class="memitem">
  153. <div class="memproto">
  154. <div class="memtemplate">
  155. template&lt;typename _Tp &gt; </div>
  156. <table class="memname">
  157. <tr>
  158. <td class="memname">using <a class="el" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">utl::meta::not_</a> = typedef <a class="el" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">not_c</a>&lt;_Tp::type::value&gt;</td>
  159. </tr>
  160. </table>
  161. </div><div class="memdoc">
  162. <p>not </p>
  163. <dl><dt><b>Examples: </b></dt><dd><a class="el" href="_w_1_2_work_2_software_2_libraries_2utl_2include_2utl_2meta_2typelist_8h-example.html#a50">W:/Work/Software/Libraries/utl/include/utl/meta/typelist.h</a>.</dd>
  164. </dl>
  165. <p class="definition">Definition at line <a class="el" href="operations_8h_source.html#l00047">47</a> of file <a class="el" href="operations_8h_source.html">operations.h</a>.</p>
  166. </div>
  167. </div>
  168. <a id="ga7de987520bd0973f03ff8bab3152361a"></a>
  169. <h2 class="memtitle"><span class="permalink"><a href="#ga7de987520bd0973f03ff8bab3152361a">&#9670;&nbsp;</a></span>not_c</h2>
  170. <div class="memitem">
  171. <div class="memproto">
  172. <div class="memtemplate">
  173. template&lt;bool B&gt; </div>
  174. <table class="memname">
  175. <tr>
  176. <td class="memname">using <a class="el" href="group__integral.html#ga7de987520bd0973f03ff8bab3152361a">utl::meta::not_c</a> = typedef <a class="el" href="namespaceutl_1_1meta.html#a0bec5828d2df0edfb4bc084773a438f6">bool_</a>&lt;!B&gt;</td>
  177. </tr>
  178. </table>
  179. </div><div class="memdoc">
  180. <p>Negate the <em>bool</em> constant parameter. </p>
  181. <p>Logical relation for types </p>
  182. <p class="definition">Definition at line <a class="el" href="operations_8h_source.html#l00043">43</a> of file <a class="el" href="operations_8h_source.html">operations.h</a>.</p>
  183. </div>
  184. </div>
  185. <a id="ga4dfaf054d891eb35d741662b077bbbd2"></a>
  186. <h2 class="memtitle"><span class="permalink"><a href="#ga4dfaf054d891eb35d741662b077bbbd2">&#9670;&nbsp;</a></span>not_same_</h2>
  187. <div class="memitem">
  188. <div class="memproto">
  189. <div class="memtemplate">
  190. template&lt;typename _T1 , typename _T2 &gt; </div>
  191. <table class="memname">
  192. <tr>
  193. <td class="memname">using <a class="el" href="group__integral.html#ga4dfaf054d891eb35d741662b077bbbd2">utl::meta::not_same_</a> = typedef <a class="el" href="group__integral.html#ga16df145331d3c62e624385c5949d90c4">not_</a>&lt;<a class="el" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt;<a class="el" href="structutl_1_1meta_1_1same__.html">same_</a>&lt;_T1, _T2&gt; &gt;&gt;</td>
  194. </tr>
  195. </table>
  196. </div><div class="memdoc">
  197. <p>not same </p>
  198. <dl><dt><b>Examples: </b></dt><dd><a class="el" href="_w_1_2_work_2_software_2_libraries_2utl_2include_2utl_2meta_2invoke_8h-example.html#a19">W:/Work/Software/Libraries/utl/include/utl/meta/invoke.h</a>.</dd>
  199. </dl>
  200. <p class="definition">Definition at line <a class="el" href="operations_8h_source.html#l00111">111</a> of file <a class="el" href="operations_8h_source.html">operations.h</a>.</p>
  201. </div>
  202. </div>
  203. <a id="gac43f400cc93d54f5f79892e618069d9b"></a>
  204. <h2 class="memtitle"><span class="permalink"><a href="#gac43f400cc93d54f5f79892e618069d9b">&#9670;&nbsp;</a></span>or_</h2>
  205. <div class="memitem">
  206. <div class="memproto">
  207. <div class="memtemplate">
  208. template&lt;typename... _Ts&gt; </div>
  209. <table class="memname">
  210. <tr>
  211. <td class="memname">using <a class="el" href="group__integral.html#gac43f400cc93d54f5f79892e618069d9b">utl::meta::or_</a> = typedef <a class="el" href="namespaceutl_1_1meta.html#aa5a37adba244ff4286f994111c4c02ea">eval</a>&lt;<a class="el" href="structutl_1_1meta_1_1detail_1_1__or__.html">detail::_or_</a>&lt;_Ts...&gt; &gt;</td>
  212. </tr>
  213. </table>
  214. </div><div class="memdoc">
  215. <p class="definition">Definition at line <a class="el" href="operations_8h_source.html#l00070">70</a> of file <a class="el" href="operations_8h_source.html">operations.h</a>.</p>
  216. </div>
  217. </div>
  218. </div><!-- contents -->
  219. </div><!-- doc-content -->
  220. <!-- start footer part -->
  221. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  222. <ul>
  223. <li class="footer">Generated by
  224. <a href="http://www.doxygen.org/index.html">
  225. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  226. </ul>
  227. </div>
  228. </body>
  229. </html>