Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

181 lines
14 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/utility/invoke.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('utility_2invoke_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="#func-members">Functions</a> </div>
  91. <div class="headertitle">
  92. <div class="title">invoke.h File Reference</div> </div>
  93. </div><!--header-->
  94. <div class="contents">
  95. <p><a class="el" href="namespaceutl.html#adc675874b5426194d04112f76b356714" title="Invoke a callable object (for C++14) ">invoke()</a> and invoke traits implementation
  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="meta_8h_source.html">utl/meta/meta.h</a>&gt;</code><br />
  99. <code>#include &lt;type_traits&gt;</code><br />
  100. <code>#include &lt;functional&gt;</code><br />
  101. <code>#include &lt;utility&gt;</code><br />
  102. </div>
  103. <p><a href="utility_2invoke_8h_source.html">Go to the source code of this file.</a></p>
  104. <table class="memberdecls">
  105. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  106. Classes</h2></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_1detail_1_1is__ref__wrapper.html">utl::detail::is_ref_wrapper&lt; T &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_1detail_1_1is__ref__wrapper_3_01std_1_1reference__wrapper_3_01_u_01_4_01_4.html">utl::detail::is_ref_wrapper&lt; std::reference_wrapper&lt; U &gt; &gt;</a></td></tr>
  110. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1is__invocable.html">utl::is_invocable&lt; F, Args &gt;</a></td></tr>
  112. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">std::is_invocable trait for C++11 <a href="structutl_1_1is__invocable.html#details">More...</a><br /></td></tr>
  113. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1is__invocable__r.html">utl::is_invocable_r&lt; R, F, Args &gt;</a></td></tr>
  115. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">std::is_invocable_r trait for C++11 <a href="structutl_1_1is__invocable__r.html#details">More...</a><br /></td></tr>
  116. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1detail_1_1try__invoke.html">utl::detail::try_invoke&lt; _Callable, _Args &gt;</a></td></tr>
  118. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1detail_1_1invoke__result__.html">utl::detail::invoke_result_&lt; B, _Callable, _Args &gt;</a></td></tr>
  120. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structutl_1_1detail_1_1invoke__result___3_01true_00_01___callable_00_01___args_8_8_8_01_4.html">utl::detail::invoke_result_&lt; true, _Callable, _Args... &gt;</a></td></tr>
  122. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. </table><table class="memberdecls">
  124. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
  125. Namespaces</h2></td></tr>
  126. <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>
  127. <tr class="memdesc:namespaceutl"><td class="mdescLeft">&#160;</td><td class="mdescRight">STL's core language concepts. <br /></td></tr>
  128. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:namespaceutl_1_1detail"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1detail.html">utl::detail</a></td></tr>
  130. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. </table><table class="memberdecls">
  132. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
  133. Typedefs</h2></td></tr>
  134. <tr><td colspan="2"><div class="groupHeader"></div></td></tr>
  135. <tr class="memitem:a9dd560a1b217a10af34d1ade3e77a76b"><td class="memTemplParams" colspan="2">template&lt;typename _Callable , typename... _Args&gt; </td></tr>
  136. <tr class="memitem:a9dd560a1b217a10af34d1ade3e77a76b"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl.html#a9dd560a1b217a10af34d1ade3e77a76b">utl::invoke_result</a> = detail::invoke_result_&lt; is_invocable&lt; _Callable, _Args... &gt;::value, _Callable, _Args... &gt;</td></tr>
  137. <tr class="memdesc:a9dd560a1b217a10af34d1ade3e77a76b"><td class="mdescLeft">&#160;</td><td class="mdescRight">invoke_result (for C++14) <a href="namespaceutl.html#a9dd560a1b217a10af34d1ade3e77a76b">More...</a><br /></td></tr>
  138. <tr class="separator:a9dd560a1b217a10af34d1ade3e77a76b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:ae40494acc30f2894c74544f3e9142933"><td class="memTemplParams" colspan="2">template&lt;typename _Callable , typename... _Args&gt; </td></tr>
  140. <tr class="memitem:ae40494acc30f2894c74544f3e9142933"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl.html#ae40494acc30f2894c74544f3e9142933">utl::invoke_result_t</a> = meta::eval&lt; invoke_result&lt; _Callable, _Args... &gt; &gt;</td></tr>
  141. <tr class="memdesc:ae40494acc30f2894c74544f3e9142933"><td class="mdescLeft">&#160;</td><td class="mdescRight">invoke_result_t (for C++14) <a href="namespaceutl.html#ae40494acc30f2894c74544f3e9142933">More...</a><br /></td></tr>
  142. <tr class="separator:ae40494acc30f2894c74544f3e9142933"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. </table><table class="memberdecls">
  144. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  145. Functions</h2></td></tr>
  146. <tr class="memitem:a2c39a67272ada5da5f1b84115dadc4a1"><td class="memTemplParams" colspan="2">template&lt;class T , class Type , class T1 , class... Args, meta::enable_if_t&lt; std::is_member_function_pointer&lt; std::decay_t&lt; Type T::*&gt;&gt;::value &amp;&amp;std::is_base_of&lt; T, std::decay_t&lt; T1 &gt;&gt;::value, int &gt; = 0&gt; </td></tr>
  147. <tr class="memitem:a2c39a67272ada5da5f1b84115dadc4a1"><td class="memTemplItemLeft" align="right" valign="top">decltype(auto)&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1detail.html#a2c39a67272ada5da5f1b84115dadc4a1">utl::detail::invoke_impl_</a> (Type T::*f, T1 &amp;&amp;t1, Args &amp;&amp;... args)</td></tr>
  148. <tr class="separator:a2c39a67272ada5da5f1b84115dadc4a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a09341831ecc9aab67a23d3a47b2d114f"><td class="memTemplParams" colspan="2">template&lt;class F , class... Args&gt; </td></tr>
  150. <tr class="memitem:a09341831ecc9aab67a23d3a47b2d114f"><td class="memTemplItemLeft" align="right" valign="top">decltype(auto)&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl_1_1detail.html#a09341831ecc9aab67a23d3a47b2d114f">utl::detail::invoke_impl_</a> (F &amp;&amp;f, Args &amp;&amp;... args)</td></tr>
  151. <tr class="separator:a09341831ecc9aab67a23d3a47b2d114f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:adc675874b5426194d04112f76b356714"><td class="memTemplParams" colspan="2">template&lt;typename _Callable , typename... _Args&gt; </td></tr>
  153. <tr class="memitem:adc675874b5426194d04112f76b356714"><td class="memTemplItemLeft" align="right" valign="top">decltype(auto)&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceutl.html#adc675874b5426194d04112f76b356714">utl::invoke</a> (_Callable &amp;&amp;fn, _Args &amp;&amp;... args)</td></tr>
  154. <tr class="memdesc:adc675874b5426194d04112f76b356714"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke a callable object (for C++14) <a href="namespaceutl.html#adc675874b5426194d04112f76b356714">More...</a><br /></td></tr>
  155. <tr class="separator:adc675874b5426194d04112f76b356714"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. </table>
  157. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  158. <div class="textblock"><p><a class="el" href="namespaceutl.html#adc675874b5426194d04112f76b356714" title="Invoke a callable object (for C++14) ">invoke()</a> and invoke traits implementation </p>
  159. <p>Copyright (C) 2018-2019 Christos Choutouridis</p>
  160. <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>
  161. <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 detail.</p>
  162. <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>
  163. <p class="definition">Definition in file <a class="el" href="utility_2invoke_8h_source.html">invoke.h</a>.</p>
  164. </div></div><!-- contents -->
  165. </div><!-- doc-content -->
  166. <!-- start footer part -->
  167. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  168. <ul>
  169. <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_cd2b5ca7f5fdf6a80655358f064ed410.html">utility</a></li><li class="navelem"><a class="el" href="utility_2invoke_8h.html">invoke.h</a></li>
  170. <li class="footer">Generated by
  171. <a href="http://www.doxygen.org/index.html">
  172. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  173. </ul>
  174. </div>
  175. </body>
  176. </html>