API reference v3.15.0

This commit is contained in:
Michele Caini
2025-03-19 15:49:42 +01:00
parent 4b4d0ab7ed
commit 1e23a11311
1334 changed files with 46058 additions and 36285 deletions
+111 -141
View File
@@ -3,13 +3,15 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EnTT: src/entt/signal/delegate.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
@@ -23,7 +25,7 @@
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">EnTT<span id="projectnumber">&#160;3.14.0</span>
<div id="projectname">EnTT<span id="projectnumber">&#160;3.15.0</span>
</div>
</td>
</tr>
@@ -31,18 +33,23 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
initMenu('',true,false,'search.php','Search',false);
$(function() { init_search(); });
});
/* @license-end */
@@ -50,7 +57,7 @@ $(function() {
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
@@ -79,6 +86,7 @@ $(function() { codefold.init(0); });
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_66e9674e8206a335795995fa32a03c91.html">entt</a></li><li class="navelem"><a class="el" href="dir_a53318306f6ac0f7fe657839abd543ab.html">signal</a></li> </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
<div class="headertitle"><div class="title">delegate.hpp</div></div>
</div><!--header-->
@@ -96,7 +104,7 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include &quot;fwd.hpp&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">namespace </span>internal {</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Ret, <span class="keyword">typename</span>... Args&gt;</div>
@@ -109,7 +117,7 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">constexpr</span> <span class="keyword">auto</span> function_pointer(Ret (Class::*)(Args...), Other &amp;&amp;...) -&gt; Ret (*)(Args...);</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Class, <span class="keyword">typename</span> Ret, <span class="keyword">typename</span>... Args, <span class="keyword">typename</span>... Other&gt;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">constexpr</span> <span class="keyword">auto</span> function_pointer(Ret (Class::*)(Args...) const, Other &amp;&amp;...) -&gt; Ret (*)(Args...);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">constexpr</span> <span class="keyword">auto</span> function_pointer(Ret (Class::*)(Args...) <span class="keyword">const</span>, Other &amp;&amp;...) -&gt; Ret (*)(Args...);</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Class, <span class="keyword">typename</span> Type, <span class="keyword">typename</span>... Other, <span class="keyword">typename</span> = std::enable_if_t&lt;std::is_member_object_pointer_v&lt;Type Class::*&gt;&gt;&gt;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword">constexpr</span> <span class="keyword">auto</span> function_pointer(Type Class::*, Other &amp;&amp;...) -&gt; Type (*)();</div>
@@ -123,212 +131,174 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>}</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>} <span class="comment">// namespace internal</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span>&gt;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classentt_1_1delegate.html"> 51</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>&gt;</div>
<div class="foldopen" id="foldopen00066" data-start="{" data-end="};">
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html"> 66</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...)&gt; {</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Ret, <span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;Ret(Args...)&gt; {</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">using </span>return_type = std::remove_const_t&lt;Ret&gt;;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">using </span>delegate_type = return_type(<span class="keyword">const</span> <span class="keywordtype">void</span> *, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...);</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">using </span>delegate_type = return_type(<span class="keyword">const</span> <span class="keywordtype">void</span> *, Args...);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>&gt;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> wrap(std::index_sequence&lt;Index...&gt;) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> [](<span class="keyword">const</span> <span class="keywordtype">void</span> *, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) -&gt; return_type {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">arguments</a> = std::forward_as_tuple(std::forward&lt;Args&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> offset = !std::is_invocable_r_v&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;...&gt; * (<span class="keyword">sizeof</span>...(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>) - <span class="keyword">sizeof</span>...(Index));</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a><span class="keyword">&gt;</span>(std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, std::forward&lt;<a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a> + offset, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;&gt;(std::get&lt;Index + offset&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">arguments</a>))...));</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> Candidate, std::size_t... Index&gt;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> [[nodiscard]] <span class="keyword">auto</span> wrap(std::index_sequence&lt;Index...&gt;) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> [](<span class="keyword">const</span> <span class="keywordtype">void</span> *, Args... args) -&gt; return_type {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> [[maybe_unused]] <span class="keyword">const</span> <span class="keyword">auto</span> arguments = std::forward_as_tuple(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> [[maybe_unused]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> offset = !std::is_invocable_r_v&lt;Ret, <span class="keyword">decltype</span>(Candidate), <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;Index, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;...&gt; * (<span class="keyword">sizeof</span>...(Args) - <span class="keyword">sizeof</span>...(Index));</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>Ret<span class="keyword">&gt;</span>(std::invoke(Candidate, std::forward&lt;<a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;Index + offset, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;&gt;(std::get&lt;Index + offset&gt;(arguments))...));</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> };</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> }</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, <span class="keyword">typename</span> Type, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>&gt;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> wrap(Type &amp;, std::index_sequence&lt;Index...&gt;) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">return</span> [](<span class="keyword">const</span> <span class="keywordtype">void</span> *payload, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) -&gt; return_type {</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> Type *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a> = <span class="keyword">static_cast&lt;</span>Type *<span class="keyword">&gt;</span>(<span class="keyword">const_cast&lt;</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t&lt;void, Type&gt;</a> *<span class="keyword">&gt;</span>(payload));</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">arguments</a> = std::forward_as_tuple(std::forward&lt;Args&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...);</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> offset = !std::is_invocable_r_v&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), Type &amp;, <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;...&gt; * (<span class="keyword">sizeof</span>...(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>) - <span class="keyword">sizeof</span>...(Index));</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a><span class="keyword">&gt;</span>(std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>, std::forward&lt;<a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a> + offset, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;&gt;(std::get&lt;Index + offset&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">arguments</a>))...));</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> Candidate, <span class="keyword">typename</span> Type, std::size_t... Index&gt;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> [[nodiscard]] <span class="keyword">auto</span> wrap(Type &amp;, std::index_sequence&lt;Index...&gt;) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">return</span> [](<span class="keyword">const</span> <span class="keywordtype">void</span> *payload, Args... args) -&gt; return_type {</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> Type *curr = <span class="keyword">static_cast&lt;</span>Type *<span class="keyword">&gt;</span>(<span class="keyword">const_cast&lt;</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t&lt;void, Type&gt;</a> *<span class="keyword">&gt;</span>(payload));</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> [[maybe_unused]] <span class="keyword">const</span> <span class="keyword">auto</span> arguments = std::forward_as_tuple(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> [[maybe_unused]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> offset = !std::is_invocable_r_v&lt;Ret, <span class="keyword">decltype</span>(Candidate), Type &amp;, <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;Index, type_list&lt;Args...&gt;&gt;...&gt; * (<span class="keyword">sizeof</span>...(Args) - <span class="keyword">sizeof</span>...(Index));</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>Ret<span class="keyword">&gt;</span>(std::invoke(Candidate, *curr, std::forward&lt;<a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;Index + offset, type_list&lt;Args...&gt;&gt;&gt;(std::get&lt;Index + offset&gt;(arguments))...));</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> };</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> }</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, <span class="keyword">typename</span> Type, std::size_t... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>&gt;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">auto</span> wrap(Type *, std::index_sequence&lt;Index...&gt;) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">return</span> [](<span class="keyword">const</span> <span class="keywordtype">void</span> *payload, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) -&gt; return_type {</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> Type *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a> = <span class="keyword">static_cast&lt;</span>Type *<span class="keyword">&gt;</span>(<span class="keyword">const_cast&lt;</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t&lt;void, Type&gt;</a> *<span class="keyword">&gt;</span>(payload));</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">arguments</a> = std::forward_as_tuple(std::forward&lt;Args&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...);</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> offset = !std::is_invocable_r_v&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), Type *, <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a>, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;...&gt; * (<span class="keyword">sizeof</span>...(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>) - <span class="keyword">sizeof</span>...(Index));</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a><span class="keyword">&gt;</span>(std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>, std::forward&lt;<a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Index</a> + offset, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;&gt;(std::get&lt;Index + offset&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">arguments</a>))...));</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">template</span>&lt;<span class="keyword">auto</span> Candidate, <span class="keyword">typename</span> Type, std::size_t... Index&gt;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> [[nodiscard]] <span class="keyword">auto</span> wrap(Type *, std::index_sequence&lt;Index...&gt;) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">return</span> [](<span class="keyword">const</span> <span class="keywordtype">void</span> *payload, Args... args) -&gt; return_type {</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> Type *curr = <span class="keyword">static_cast&lt;</span>Type *<span class="keyword">&gt;</span>(<span class="keyword">const_cast&lt;</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t&lt;void, Type&gt;</a> *<span class="keyword">&gt;</span>(payload));</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> [[maybe_unused]] <span class="keyword">const</span> <span class="keyword">auto</span> arguments = std::forward_as_tuple(std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> [[maybe_unused]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> offset = !std::is_invocable_r_v&lt;Ret, <span class="keyword">decltype</span>(Candidate), Type *, <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;Index, type_list&lt;Args...&gt;&gt;...&gt; * (<span class="keyword">sizeof</span>...(Args) - <span class="keyword">sizeof</span>...(Index));</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>Ret<span class="keyword">&gt;</span>(std::invoke(Candidate, curr, std::forward&lt;<a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;Index + offset, type_list&lt;Args...&gt;&gt;&gt;(std::get&lt;Index + offset&gt;(arguments))...));</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> };</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> }</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a1a5ceebde7cebde69a1b2022f539a656"> 101</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a1a5ceebde7cebde69a1b2022f539a656">function_type</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ada5b094a0d859325dbe1241f3d956c02"> 103</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ada5b094a0d859325dbe1241f3d956c02">type</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a9bca9876e6671a34c6503b7de65402b6"> 105</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a9bca9876e6671a34c6503b7de65402b6">result_type</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>;</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ac815fb1339c39d2413bfd5c884aad8af"> 108</a></span> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ac815fb1339c39d2413bfd5c884aad8af">delegate</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">default</a>;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">template</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">auto</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">typename</a>... Type&gt;</div>
<div class="foldopen" id="foldopen00117" data-start="{" data-end="}">
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a6621de8a9d4986619a8e133e179710fb"> 117</a></span> <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>(<a class="code hl_struct" href="structentt_1_1connect__arg__t.html">connect_arg_t</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>&gt;, Type &amp;&amp;...<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">value_or_instance</a>) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">connect&lt;Candidate&gt;</a>(std::forward&lt;Type&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">value_or_instance</a>)...);</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keyword">using </span>function_type = Ret(<span class="keyword">const</span> <span class="keywordtype">void</span> *, Args...);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">using </span>type = Ret(Args...);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keyword">using </span>result_type = Ret;</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>() noexcept = default;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> template&lt;auto Candidate, typename... Type&gt;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>(connect_arg_t&lt;Candidate&gt;, Type &amp;&amp;...value_or_instance) noexcept {</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> connect&lt;Candidate&gt;(std::forward&lt;Type&gt;(value_or_instance)...);</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> }</div>
</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="foldopen" id="foldopen00127" data-start="{" data-end="}">
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a40c5ed7b7a18636722a6c692845414e3"> 127</a></span> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a40c5ed7b7a18636722a6c692845414e3">delegate</a>(<a class="code hl_typedef" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a1a5ceebde7cebde69a1b2022f539a656">function_type</a> *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">function</a>, <span class="keyword">const</span> <span class="keywordtype">void</span> *payload = <span class="keyword">nullptr</span>) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> connect(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">function</a>, payload);</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>(function_type *function, <span class="keyword">const</span> <span class="keywordtype">void</span> *payload = <span class="keyword">nullptr</span>) noexcept {</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> connect(function, payload);</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> }</div>
</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keyword">template</span>&lt;auto Cand<span class="keywordtype">id</span>ate&gt;</div>
<div class="foldopen" id="foldopen00136" data-start="{" data-end="}">
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a97b4139915fc1c5528427b1a8685b134"> 136</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a97b4139915fc1c5528427b1a8685b134">connect</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keywordtype">void</span> connect() noexcept {</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> instance = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_r_v&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...&gt;) {</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> fn = [](<span class="keyword">const</span> <span class="keywordtype">void</span> *, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) -&gt; return_type {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, std::forward&lt;Args&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...));</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_r_v&lt;Ret, <span class="keyword">decltype</span>(Candidate), Args...&gt;) {</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> fn = [](<span class="keyword">const</span> <span class="keywordtype">void</span> *, Args... args) -&gt; return_type {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">return</span> Ret(std::invoke(Candidate, std::forward&lt;Args&gt;(args)...));</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> };</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_member_pointer_v&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>)&gt;) {</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> fn = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">wrap&lt;Candidate&gt;</a>(internal::index_sequence_for&lt;<a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;0, <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;Args...&gt;</a>&gt;&gt;(internal::function_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>)&gt;{}));</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_member_pointer_v&lt;<span class="keyword">decltype</span>(Candidate)&gt;) {</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> fn = wrap&lt;Candidate&gt;(internal::index_sequence_for&lt;<a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t</a>&lt;0, type_list&lt;Args...&gt;&gt;&gt;(internal::function_pointer_t&lt;<span class="keyword">decltype</span>(Candidate)&gt;{}));</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> fn = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">wrap&lt;Candidate&gt;</a>(internal::index_sequence_for(internal::function_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>)&gt;{}));</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> fn = wrap&lt;Candidate&gt;(internal::index_sequence_for(internal::function_pointer_t&lt;<span class="keyword">decltype</span>(Candidate)&gt;{}));</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> }</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> }</div>
</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keyword">template</span>&lt;auto Cand<span class="keywordtype">id</span>ate, <span class="keyword">typename</span> Type&gt;</div>
<div class="foldopen" id="foldopen00166" data-start="{" data-end="}">
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a541b15248c0722840117695e92e1317f"> 166</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a541b15248c0722840117695e92e1317f">connect</a>(Type &amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">value_or_instance</a>) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> instance = &amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">value_or_instance</a>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordtype">void</span> connect(Type &amp;value_or_instance) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> instance = &amp;value_or_instance;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_r_v&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), Type &amp;, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...&gt;) {</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> fn = [](<span class="keyword">const</span> <span class="keywordtype">void</span> *payload, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) -&gt; return_type {</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> Type *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a> = <span class="keyword">static_cast&lt;</span>Type *<span class="keyword">&gt;</span>(<span class="keyword">const_cast&lt;</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t&lt;void, Type&gt;</a> *<span class="keyword">&gt;</span>(payload));</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>, std::forward&lt;Args&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...));</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_r_v&lt;Ret, <span class="keyword">decltype</span>(Candidate), Type &amp;, Args...&gt;) {</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> fn = [](<span class="keyword">const</span> <span class="keywordtype">void</span> *payload, Args... args) -&gt; return_type {</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> Type *curr = <span class="keyword">static_cast&lt;</span>Type *<span class="keyword">&gt;</span>(<span class="keyword">const_cast&lt;</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t&lt;void, Type&gt;</a> *<span class="keyword">&gt;</span>(payload));</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> Ret(std::invoke(Candidate, *curr, std::forward&lt;Args&gt;(args)...));</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> };</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> fn = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">wrap&lt;Candidate&gt;</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">value_or_instance</a>, internal::index_sequence_for(internal::function_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), Type&gt;{}));</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> fn = wrap&lt;Candidate&gt;(value_or_instance, internal::index_sequence_for(internal::function_pointer_t&lt;<span class="keyword">decltype</span>(Candidate), Type&gt;{}));</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> }</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> }</div>
</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="keyword">template</span>&lt;auto Cand<span class="keywordtype">id</span>ate, <span class="keyword">typename</span> Type&gt;</div>
<div class="foldopen" id="foldopen00190" data-start="{" data-end="}">
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a96de957fc6a89a4d017930e084637717"> 190</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a96de957fc6a89a4d017930e084637717">connect</a>(Type *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">value_or_instance</a>) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> instance = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">value_or_instance</a>;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keywordtype">void</span> connect(Type *value_or_instance) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> instance = value_or_instance;</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_r_v&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), Type *, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...&gt;) {</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> fn = [](<span class="keyword">const</span> <span class="keywordtype">void</span> *payload, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) -&gt; return_type {</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> Type *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a> = <span class="keyword">static_cast&lt;</span>Type *<span class="keyword">&gt;</span>(<span class="keyword">const_cast&lt;</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t&lt;void, Type&gt;</a> *<span class="keyword">&gt;</span>(payload));</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>, std::forward&lt;Args&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...));</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_r_v&lt;Ret, <span class="keyword">decltype</span>(Candidate), Type *, Args...&gt;) {</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> fn = [](<span class="keyword">const</span> <span class="keywordtype">void</span> *payload, Args... args) -&gt; return_type {</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> Type *curr = <span class="keyword">static_cast&lt;</span>Type *<span class="keyword">&gt;</span>(<span class="keyword">const_cast&lt;</span><a class="code hl_typedef" href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">constness_as_t&lt;void, Type&gt;</a> *<span class="keyword">&gt;</span>(payload));</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">return</span> Ret(std::invoke(Candidate, curr, std::forward&lt;Args&gt;(args)...));</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> };</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> fn = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">wrap&lt;Candidate&gt;</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">value_or_instance</a>, internal::index_sequence_for(internal::function_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), Type&gt;{}));</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> fn = wrap&lt;Candidate&gt;(value_or_instance, internal::index_sequence_for(internal::function_pointer_t&lt;<span class="keyword">decltype</span>(Candidate), Type&gt;{}));</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> }</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> }</div>
</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div>
<div class="foldopen" id="foldopen00216" data-start="{" data-end="}">
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#aca254b9fab39adc886b0a2266b39f88f"> 216</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#aca254b9fab39adc886b0a2266b39f88f">connect</a>(<a class="code hl_typedef" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a1a5ceebde7cebde69a1b2022f539a656">function_type</a> *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">function</a>, <span class="keyword">const</span> <span class="keywordtype">void</span> *payload = <span class="keyword">nullptr</span>) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> ENTT_ASSERT(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">function</a> != <span class="keyword">nullptr</span>, <span class="stringliteral">&quot;Uninitialized function pointer&quot;</span>);</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span></div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordtype">void</span> connect(function_type *function, <span class="keyword">const</span> <span class="keywordtype">void</span> *payload = <span class="keyword">nullptr</span>) noexcept {</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> ENTT_ASSERT(function != <span class="keyword">nullptr</span>, <span class="stringliteral">&quot;Uninitialized function pointer&quot;</span>);</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> instance = payload;</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> fn = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">function</a>;</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> fn = function;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> }</div>
</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div>
<div class="foldopen" id="foldopen00227" data-start="{" data-end="}">
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a10eeabec435f0b704fb5937c766b12db"> 227</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a10eeabec435f0b704fb5937c766b12db">reset</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span></div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keywordtype">void</span> reset() noexcept {</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> instance = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> fn = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> }</div>
</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> </div>
<div class="foldopen" id="foldopen00236" data-start="{" data-end="}">
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ad2c0669b2eeaa2e0fce72b16e3510d95"> 236</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_typedef" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a1a5ceebde7cebde69a1b2022f539a656">function_type</a> *<a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ad2c0669b2eeaa2e0fce72b16e3510d95">target</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span></div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> [[nodiscard]] function_type *target() const noexcept {</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keywordflow">return</span> fn;</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> }</div>
</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> </div>
<div class="foldopen" id="foldopen00244" data-start="{" data-end="}">
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a9d2053438aeeb385f81b4cf99367c796"> 244</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">const</span> <span class="keywordtype">void</span> *<a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a9d2053438aeeb385f81b4cf99367c796">data</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span></div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> [[nodiscard]] <span class="keyword">const</span> <span class="keywordtype">void</span> *data() const noexcept {</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <span class="keywordflow">return</span> instance;</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> }</div>
</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> </div>
<div class="foldopen" id="foldopen00260" data-start="{" data-end="}">
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a0e53caedb53810bc96aa71bce199c990"> 260</a></span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a0e53caedb53810bc96aa71bce199c990">operator()</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span></div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> Ret operator()(Args... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> ENTT_ASSERT(<span class="keyword">static_cast&lt;</span><span class="keywordtype">bool</span><span class="keyword">&gt;</span>(*<span class="keyword">this</span>), <span class="stringliteral">&quot;Uninitialized delegate&quot;</span>);</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <span class="keywordflow">return</span> fn(instance, std::forward&lt;Args&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...);</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <span class="keywordflow">return</span> fn(instance, std::forward&lt;Args&gt;(args)...);</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> }</div>
</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> </div>
<div class="foldopen" id="foldopen00269" data-start="{" data-end="}">
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ae6135edc6c6155d19f86b7f27038a1f6"> 269</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">explicit</span> <span class="keyword">operator</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">bool</a>() <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">noexcept</a> {</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> [[nodiscard]] <span class="keyword">explicit</span> <span class="keyword">operator</span> bool() const noexcept {</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="comment">// no need to also test instance</span></div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> <span class="keywordflow">return</span> !(fn == <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> }</div>
</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> </div>
<div class="foldopen" id="foldopen00279" data-start="{" data-end="}">
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"><a class="line" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a02045624d6c4c1e2d0f25f24b5fa6349"> 279</a></span> [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keywordtype">bool</span> <a class="code hl_function" href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a02045624d6c4c1e2d0f25f24b5fa6349">operator==</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...)&gt; &amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keywordflow">return</span> fn == <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.fn &amp;&amp; instance == <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">other</a>.instance;</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span></div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> [[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">operator==</a>(<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>&lt;Ret(Args...)&gt; &amp;other) <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keywordflow">return</span> fn == other.fn &amp;&amp; instance == other.instance;</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> }</div>
</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> </div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keyword">const</span> <span class="keywordtype">void</span> *instance{};</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> delegate_type *fn{};</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span>};</div>
</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> </div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>&gt;</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span></div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Ret, <span class="keyword">typename</span>... Args&gt;</div>
<div class="foldopen" id="foldopen00297" data-start="{" data-end="}">
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"><a class="line" href="namespaceentt.html#ae663976796b773780f6136606c1a3f31"> 297</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">operator!=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...)&gt; &amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, <span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...)&gt; &amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <span class="keywordflow">return</span> !(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a> == <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>);</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"><a class="line" href="namespaceentt.html#ae663976796b773780f6136606c1a3f31"> 297</a></span>[[nodiscard]] <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">operator!=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;Ret(Args...)&gt; &amp;lhs, <span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;Ret(Args...)&gt; &amp;rhs) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <span class="keywordflow">return</span> !(lhs == rhs);</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span>}</div>
</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> </div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span></div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span><span class="keyword">template</span>&lt;auto Cand<span class="keywordtype">id</span>ate&gt;</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"><a class="line" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4"> 306</a></span><a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>(<a class="code hl_struct" href="structentt_1_1connect__arg__t.html">connect_arg_t&lt;Candidate&gt;</a>) -&gt; <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;std::remove_pointer_t&lt;internal::function_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>)&gt;&gt;&gt;;</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> </div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"><a class="line" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4"> 306</a></span><a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>(<a class="code hl_struct" href="structentt_1_1connect__arg__t.html">connect_arg_t&lt;Candidate&gt;</a>) -&gt; <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;std::remove_pointer_t&lt;internal::function_pointer_t&lt;<span class="keyword">decltype</span>(Candidate)&gt;&gt;&gt;;</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span></div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span><span class="keyword">template</span>&lt;auto Cand<span class="keywordtype">id</span>ate, <span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"><a class="line" href="namespaceentt.html#af883efa5bf613137f825c322df3ae801"> 314</a></span><a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>(<a class="code hl_struct" href="structentt_1_1connect__arg__t.html">connect_arg_t&lt;Candidate&gt;</a>, Type &amp;&amp;) -&gt; <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;std::remove_pointer_t&lt;internal::function_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>), Type&gt;&gt;&gt;;</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> </div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>&gt;</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"><a class="line" href="namespaceentt.html#aaba06006a862fa5dc613e8561ac4e92c"> 322</a></span><a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (*)(<span class="keyword">const</span> <span class="keywordtype">void</span> *, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...), <span class="keyword">const</span> <span class="keywordtype">void</span> * = <span class="keyword">nullptr</span>) -&gt; <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...)&gt;;</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"><a class="line" href="namespaceentt.html#af883efa5bf613137f825c322df3ae801"> 314</a></span><a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>(<a class="code hl_struct" href="structentt_1_1connect__arg__t.html">connect_arg_t&lt;Candidate&gt;</a>, Type &amp;&amp;) -&gt; <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;std::remove_pointer_t&lt;internal::function_pointer_t&lt;<span class="keyword">decltype</span>(Candidate), Type&gt;&gt;&gt;;</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span></div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Ret, <span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"><a class="line" href="namespaceentt.html#aaba06006a862fa5dc613e8561ac4e92c"> 322</a></span><a class="code hl_function" href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">delegate</a>(Ret (*)(<span class="keyword">const</span> <span class="keywordtype">void</span> *, Args...), <span class="keyword">const</span> <span class="keywordtype">void</span> * = <span class="keyword">nullptr</span>) -&gt; <a class="code hl_class" href="classentt_1_1delegate.html">delegate</a>&lt;Ret(Args...)&gt;;</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> </div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span>} <span class="comment">// namespace entt</span></div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> </div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a02045624d6c4c1e2d0f25f24b5fa6349"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a02045624d6c4c1e2d0f25f24b5fa6349">entt::delegate&lt; Ret(Args...)&gt;::operator==</a></div><div class="ttdeci">bool operator==(const delegate&lt; Ret(Args...)&gt; &amp;other) const noexcept</div><div class="ttdoc">Compares the contents of two delegates.</div><div class="ttdef"><b>Definition</b> <a href="#l00279">delegate.hpp:279</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a0e53caedb53810bc96aa71bce199c990"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a0e53caedb53810bc96aa71bce199c990">entt::delegate&lt; Ret(Args...)&gt;::operator()</a></div><div class="ttdeci">Ret operator()(Args... args) const</div><div class="ttdoc">Triggers a delegate.</div><div class="ttdef"><b>Definition</b> <a href="#l00260">delegate.hpp:260</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a10eeabec435f0b704fb5937c766b12db"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a10eeabec435f0b704fb5937c766b12db">entt::delegate&lt; Ret(Args...)&gt;::reset</a></div><div class="ttdeci">void reset() noexcept</div><div class="ttdoc">Resets a delegate.</div><div class="ttdef"><b>Definition</b> <a href="#l00227">delegate.hpp:227</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a1a5ceebde7cebde69a1b2022f539a656"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a1a5ceebde7cebde69a1b2022f539a656">entt::delegate&lt; Ret(Args...)&gt;::function_type</a></div><div class="ttdeci">Ret(const void *, Args...) function_type</div><div class="ttdoc">Function type of the contained target.</div><div class="ttdef"><b>Definition</b> <a href="#l00101">delegate.hpp:101</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a40c5ed7b7a18636722a6c692845414e3"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a40c5ed7b7a18636722a6c692845414e3">entt::delegate&lt; Ret(Args...)&gt;::delegate</a></div><div class="ttdeci">delegate(function_type *function, const void *payload=nullptr) noexcept</div><div class="ttdoc">Constructs a delegate and connects an user defined function with optional payload.</div><div class="ttdef"><b>Definition</b> <a href="#l00127">delegate.hpp:127</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a541b15248c0722840117695e92e1317f"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a541b15248c0722840117695e92e1317f">entt::delegate&lt; Ret(Args...)&gt;::connect</a></div><div class="ttdeci">void connect(Type &amp;value_or_instance) noexcept</div><div class="ttdoc">Connects a free function with payload or a bound member to a delegate.</div><div class="ttdef"><b>Definition</b> <a href="#l00166">delegate.hpp:166</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a96de957fc6a89a4d017930e084637717"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a96de957fc6a89a4d017930e084637717">entt::delegate&lt; Ret(Args...)&gt;::connect</a></div><div class="ttdeci">void connect(Type *value_or_instance) noexcept</div><div class="ttdoc">Connects a free function with payload or a bound member to a delegate.</div><div class="ttdef"><b>Definition</b> <a href="#l00190">delegate.hpp:190</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a97b4139915fc1c5528427b1a8685b134"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a97b4139915fc1c5528427b1a8685b134">entt::delegate&lt; Ret(Args...)&gt;::connect</a></div><div class="ttdeci">void connect() noexcept</div><div class="ttdoc">Connects a free function or an unbound member to a delegate.</div><div class="ttdef"><b>Definition</b> <a href="#l00136">delegate.hpp:136</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a9bca9876e6671a34c6503b7de65402b6"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a9bca9876e6671a34c6503b7de65402b6">entt::delegate&lt; Ret(Args...)&gt;::result_type</a></div><div class="ttdeci">Ret result_type</div><div class="ttdoc">Return type of the delegate.</div><div class="ttdef"><b>Definition</b> <a href="#l00105">delegate.hpp:105</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_a9d2053438aeeb385f81b4cf99367c796"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#a9d2053438aeeb385f81b4cf99367c796">entt::delegate&lt; Ret(Args...)&gt;::data</a></div><div class="ttdeci">const void * data() const noexcept</div><div class="ttdoc">Returns the instance or the payload linked to a delegate, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00244">delegate.hpp:244</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_ac815fb1339c39d2413bfd5c884aad8af"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ac815fb1339c39d2413bfd5c884aad8af">entt::delegate&lt; Ret(Args...)&gt;::delegate</a></div><div class="ttdeci">delegate() noexcept=default</div><div class="ttdoc">Default constructor.</div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_aca254b9fab39adc886b0a2266b39f88f"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#aca254b9fab39adc886b0a2266b39f88f">entt::delegate&lt; Ret(Args...)&gt;::connect</a></div><div class="ttdeci">void connect(function_type *function, const void *payload=nullptr) noexcept</div><div class="ttdoc">Connects an user defined function with optional payload to a delegate.</div><div class="ttdef"><b>Definition</b> <a href="#l00216">delegate.hpp:216</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_ad2c0669b2eeaa2e0fce72b16e3510d95"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ad2c0669b2eeaa2e0fce72b16e3510d95">entt::delegate&lt; Ret(Args...)&gt;::target</a></div><div class="ttdeci">function_type * target() const noexcept</div><div class="ttdoc">Returns a pointer to the stored callable function target, if any.</div><div class="ttdef"><b>Definition</b> <a href="#l00236">delegate.hpp:236</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4_html_ada5b094a0d859325dbe1241f3d956c02"><div class="ttname"><a href="classentt_1_1delegate_3_01Ret_07Args_8_8_8_08_4.html#ada5b094a0d859325dbe1241f3d956c02">entt::delegate&lt; Ret(Args...)&gt;::type</a></div><div class="ttdeci">Ret(Args...) type</div><div class="ttdoc">Function type of the delegate.</div><div class="ttdef"><b>Definition</b> <a href="#l00103">delegate.hpp:103</a></div></div>
<div class="ttc" id="aclassentt_1_1delegate_html"><div class="ttname"><a href="classentt_1_1delegate.html">entt::delegate</a></div><div class="ttdoc">Basic delegate implementation.</div><div class="ttdef"><b>Definition</b> <a href="#l00051">delegate.hpp:51</a></div></div>
<div class="ttc" id="anamespaceentt_html"><div class="ttname"><a href="namespaceentt.html">entt</a></div><div class="ttdoc">EnTT default namespace.</div><div class="ttdef"><b>Definition</b> <a href="dense__map_8hpp_source.html#l00022">dense_map.hpp:22</a></div></div>
<div class="ttc" id="anamespaceentt_html_a12e4d0c58f9c4cc6f5513c39c530b9b7"><div class="ttname"><a href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">entt::make_obj_using_allocator</a></div><div class="ttdeci">constexpr Type make_obj_using_allocator(const Allocator &amp;allocator, Args &amp;&amp;...args)</div><div class="ttdoc">Uses-allocator construction utility (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="memory_8hpp_source.html#l00219">memory.hpp:219</a></div></div>
<div class="ttc" id="anamespaceentt_html_a13168ef82af733bfe584f34f29472d20"><div class="ttname"><a href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">entt::constness_as_t</a></div><div class="ttdeci">typename constness_as&lt; To, From &gt;::type constness_as_t</div><div class="ttdoc">Alias template to facilitate the transcription of the constness.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00839">type_traits.hpp:839</a></div></div>
<div class="ttc" id="anamespaceentt_html_a9ac8221f536d5ecb512dc433ec7a4fd1"><div class="ttname"><a href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">entt::type_list_element_t</a></div><div class="ttdeci">typename type_list_element&lt; Index, List &gt;::type type_list_element_t</div><div class="ttdoc">Helper type.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00148">type_traits.hpp:148</a></div></div>
<div class="ttc" id="anamespaceentt_html_a13168ef82af733bfe584f34f29472d20"><div class="ttname"><a href="namespaceentt.html#a13168ef82af733bfe584f34f29472d20">entt::constness_as_t</a></div><div class="ttdeci">typename constness_as&lt; To, From &gt;::type constness_as_t</div><div class="ttdoc">Alias template to facilitate the transcription of the constness.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00841">type_traits.hpp:841</a></div></div>
<div class="ttc" id="anamespaceentt_html_a9ac8221f536d5ecb512dc433ec7a4fd1"><div class="ttname"><a href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">entt::type_list_element_t</a></div><div class="ttdeci">typename type_list_element&lt; Index, List &gt;::type type_list_element_t</div><div class="ttdoc">Helper type.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00149">type_traits.hpp:149</a></div></div>
<div class="ttc" id="anamespaceentt_html_acaa5569564e913ef41b15b06e3dca0f4"><div class="ttname"><a href="namespaceentt.html#acaa5569564e913ef41b15b06e3dca0f4">entt::delegate</a></div><div class="ttdeci">delegate(connect_arg_t&lt; Candidate &gt;) -&gt; delegate&lt; std::remove_pointer_t&lt; internal::function_pointer_t&lt; decltype(Candidate)&gt; &gt; &gt;</div><div class="ttdoc">Deduction guide.</div></div>
<div class="ttc" id="anamespaceentt_html_ad9accc71a383509ada028f7fa2b767bf"><div class="ttname"><a href="namespaceentt.html#ad9accc71a383509ada028f7fa2b767bf">entt::operator!=</a></div><div class="ttdeci">constexpr bool operator!=(const basic_hashed_string&lt; Char &gt; &amp;lhs, const basic_hashed_string&lt; Char &gt; &amp;rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition</b> <a href="hashed__string_8hpp_source.html#l00232">hashed_string.hpp:232</a></div></div>
<div class="ttc" id="anamespaceentt_html_af7c61951b721a1e3612cf536bd707501"><div class="ttname"><a href="namespaceentt.html#af7c61951b721a1e3612cf536bd707501">entt::operator==</a></div><div class="ttdeci">constexpr bool operator==(const basic_hashed_string&lt; Char &gt; &amp;lhs, const basic_hashed_string&lt; Char &gt; &amp;rhs) noexcept</div><div class="ttdoc">Compares two hashed strings.</div><div class="ttdef"><b>Definition</b> <a href="hashed__string_8hpp_source.html#l00220">hashed_string.hpp:220</a></div></div>
<div class="ttc" id="astructentt_1_1connect__arg__t_html"><div class="ttname"><a href="structentt_1_1connect__arg__t.html">entt::connect_arg_t</a></div><div class="ttdoc">Disambiguation tag for constructors and the like.</div><div class="ttdef"><b>Definition</b> <a href="signal_2fwd_8hpp_source.html#l00032">fwd.hpp:32</a></div></div>
<div class="ttc" id="astructentt_1_1type__list_html"><div class="ttname"><a href="structentt_1_1type__list.html">entt::type_list</a></div><div class="ttdoc">A class to use to push around lists of types, nothing more.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00110">type_traits.hpp:110</a></div></div>
<div class="ttc" id="astructentt_1_1type__list_html"><div class="ttname"><a href="structentt_1_1type__list.html">entt::type_list</a></div><div class="ttdoc">A class to use to push around lists of types, nothing more.</div><div class="ttdef"><b>Definition</b> <a href="core_2type__traits_8hpp_source.html#l00111">type_traits.hpp:111</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>