Files
entt/meta_2utility_8hpp_source.html
T
2024-10-23 15:07:48 +02:00

459 lines
95 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<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="viewport" content="width=device-width, initial-scale=1"/>
<title>EnTT: src/entt/meta/utility.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>
<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>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">EnTT<span id="projectnumber">&#160;3.14.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<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" 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');
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<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_c5715f7ee899854a669b87bbaa642de0.html">meta</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">utility.hpp</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef ENTT_META_UTILITY_HPP</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define ENTT_META_UTILITY_HPP</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;cstddef&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &quot;../core/type_traits.hpp&quot;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &quot;../locator/locator.hpp&quot;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &quot;meta.hpp&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include &quot;node.hpp&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &quot;policy.hpp&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Ret, <span class="keyword">typename</span> Args, <span class="keywordtype">bool</span> Static, <span class="keywordtype">bool</span> Const&gt;</div>
<div class="foldopen" id="foldopen00024" data-start="{" data-end="};">
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor__traits.html"> 24</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1meta__function__descriptor__traits.html">meta_function_descriptor_traits</a> {</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor__traits.html#ad210fafe14b4744ef7f1aaafe67e5a83"> 26</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structentt_1_1meta__function__descriptor__traits.html#ad210fafe14b4744ef7f1aaafe67e5a83">return_type</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor__traits.html#a6dbea410eac186bc399b0542448209ff"> 28</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structentt_1_1meta__function__descriptor__traits.html#a6dbea410eac186bc399b0542448209ff">args_type</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor__traits.html#a109cf5434966e6ff7ba8dc20045d52cb"> 31</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structentt_1_1meta__function__descriptor__traits.html#a109cf5434966e6ff7ba8dc20045d52cb">is_static</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Static</a>;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor__traits.html#abb5a7b79fcad9c6d6483be10e3aaeb3a"> 33</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structentt_1_1meta__function__descriptor__traits.html#abb5a7b79fcad9c6d6483be10e3aaeb3a">is_const</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Const</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span>};</div>
</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span>, <span class="keyword">typename</span>&gt;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor.html"> 38</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <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">Class</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>&gt;</div>
<div class="foldopen" id="foldopen00048" data-start="{" data-end="};">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor_3_01Type_00_01Ret_07Class_1_1_5_08_07Args_8_8_8_08_01const_01_4.html"> 48</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>::*)(Args...) <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">const</a>&gt;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> : <a class="code hl_struct" href="structentt_1_1meta__function__descriptor__traits.html">meta_function_descriptor_traits</a>&lt;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> Ret,</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> std::conditional_t&lt;std::is_base_of_v&lt;Class, Type&gt;, type_list&lt;Args...&gt;, type_list&lt;const Class &amp;, Args...&gt;&gt;,</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> !std::is_base_of_v&lt;Class, Type&gt;,</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> true&gt; {};</div>
</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <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">Class</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>&gt;</div>
<div class="foldopen" id="foldopen00063" data-start="{" data-end="};">
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor_3_01Type_00_01Ret_07Class_1_1_5_08_07Args_8_8_8_08_4.html"> 63</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>::*)(Args...)&gt;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> : <a class="code hl_struct" href="structentt_1_1meta__function__descriptor__traits.html">meta_function_descriptor_traits</a>&lt;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> Ret,</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> std::conditional_t&lt;std::is_base_of_v&lt;Class, Type&gt;, type_list&lt;Args...&gt;, type_list&lt;Class &amp;, Args...&gt;&gt;,</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> !std::is_base_of_v&lt;Class, Type&gt;,</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> false&gt; {};</div>
</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Ret, <span class="keyword">typename</span> Class&gt;</div>
<div class="foldopen" id="foldopen00077" data-start="{" data-end="};">
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor_3_01Type_00_01Ret_01Class_1_1_5_01_4.html"> 77</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>::*&gt;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> : <a class="code hl_struct" href="structentt_1_1meta__function__descriptor__traits.html">meta_function_descriptor_traits</a>&lt;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> Ret &amp;,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> std::conditional_t&lt;std::is_base_of_v&lt;Class, Type&gt;, type_list&lt;&gt;, type_list&lt;Class &amp;&gt;&gt;,</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> !std::is_base_of_v&lt;Class, Type&gt;,</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> false&gt; {};</div>
</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <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">MaybeType</a>, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>&gt;</div>
<div class="foldopen" id="foldopen00092" data-start="{" data-end="};">
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor_3_01Type_00_01Ret_07_5_08_07MaybeType_00_01Args_8_8_8_08_4.html"> 92</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (*)(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">MaybeType</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...)&gt;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> : <a class="code hl_struct" href="structentt_1_1meta__function__descriptor__traits.html">meta_function_descriptor_traits</a>&lt;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>,</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> std::conditional_t&lt;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> std::is_same_v&lt;std::remove_cv_t&lt;std::remove_reference_t&lt;MaybeType&gt;&gt;, Type&gt; || std::is_base_of_v&lt;std::remove_cv_t&lt;std::remove_reference_t&lt;MaybeType&gt;&gt;, Type&gt;,</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <a class="code hl_struct" href="structentt_1_1type__list.html">type_list</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...&gt;,</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_struct" href="structentt_1_1type__list.html">type_list</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">MaybeType</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...&gt;&gt;,</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> !(std::is_same_v&lt;std::remove_cv_t&lt;std::remove_reference_t&lt;MaybeType&gt;&gt;, Type&gt; || std::is_base_of_v&lt;std::remove_cv_t&lt;std::remove_reference_t&lt;MaybeType&gt;&gt;, Type&gt;),</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> std::is_const_v&lt;std::remove_reference_t&lt;MaybeType&gt;&gt; &amp;&amp; (std::is_same_v&lt;std::remove_cv_t&lt;std::remove_reference_t&lt;MaybeType&gt;&gt;, Type&gt; || std::is_base_of_v&lt;std::remove_cv_t&lt;std::remove_reference_t&lt;MaybeType&gt;&gt;, Type&gt;)&gt; {};</div>
</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Ret&gt;</div>
<div class="foldopen" id="foldopen00108" data-start="{" data-end="};">
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="structentt_1_1meta__function__descriptor_3_01Type_00_01Ret_07_5_08_07_08_4.html"> 108</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (*)()&gt;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> : <a class="code hl_struct" href="structentt_1_1meta__function__descriptor__traits.html">meta_function_descriptor_traits</a>&lt;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a>,</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <a class="code hl_struct" href="structentt_1_1type__list.html">type_list&lt;&gt;</a>,</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">true</span>,</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">false</span>&gt; {};</div>
</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Cand<span class="keywordtype">id</span>ate&gt;</div>
<div class="foldopen" id="foldopen00125" data-start="{" data-end="};">
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="classentt_1_1meta__function__helper.html"> 125</a></span><span class="keyword">class </span><a class="code hl_class" href="classentt_1_1meta__function__helper.html">meta_function_helper</a> {</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</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>, <span class="keyword">typename</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>&gt;</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>::*)(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...) <span class="keyword">const</span>&gt; get_rid_of_noexcept(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>::*)(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...) <span class="keyword">const</span>);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</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>, <span class="keyword">typename</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>&gt;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>::*)(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...)&gt; get_rid_of_noexcept(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>::*)(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...));</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Ret, <span class="keyword">typename</span> Class, <span class="keyword">typename</span> = std::enable_if_t&lt;std::is_member_<span class="keywordtype">object</span>_po<span class="keywordtype">int</span>er_v&lt;Ret Class::*&gt;&gt;&gt;</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor&lt;Type, Ret Class::*&gt;</a> get_rid_of_noexcept(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>::*);</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</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="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Ret</a> (*)(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...)&gt; get_rid_of_noexcept(<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="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Class&gt;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="structentt_1_1meta__function__descriptor.html">meta_function_descriptor</a>&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>, <span class="keyword">decltype</span>(&amp;Class::operator())&gt; get_rid_of_noexcept(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Class</a>);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="classentt_1_1meta__function__helper.html#a74ea1aa3fe0edfad96898520cbf6eeae"> 143</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classentt_1_1meta__function__helper.html#a74ea1aa3fe0edfad96898520cbf6eeae">type</a> = <span class="keyword">decltype</span>(get_rid_of_noexcept(std::declval&lt;Candidate&gt;()));</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span>};</div>
</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Cand<span class="keywordtype">id</span>ate&gt;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f"> 152</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f">meta_function_helper_t</a> = <span class="keyword">typename</span> <a class="code hl_typedef" href="classentt_1_1meta__function__helper.html#a74ea1aa3fe0edfad96898520cbf6eeae">meta_function_helper&lt;Type, Candidate&gt;::type</a>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Policy = as_is_t, <span class="keyword">typename</span> Type&gt;</div>
<div class="foldopen" id="foldopen00168" data-start="{" data-end="}">
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="namespaceentt.html#a8f82832c0a318d045d51e4cdc3f90c7e"> 168</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a8f82832c0a318d045d51e4cdc3f90c7e">meta_dispatch</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1meta__ctx.html">meta_ctx</a> &amp;ctx, [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] Type &amp;&amp;value) {</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_same_v&lt;Policy, as_void_t&gt;) {</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>{ctx, std::in_place_type&lt;void&gt;};</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_same_v&lt;Policy, as_ref_t&gt;) {</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>{ctx, std::in_place_type&lt;Type&gt;, value};</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_same_v&lt;Policy, as_cref_t&gt;) {</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="keyword">static_assert</span>(std::is_lvalue_reference_v&lt;Type&gt;, <span class="stringliteral">&quot;Invalid type&quot;</span>);</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>{ctx, std::in_place_type&lt;const std::remove_reference_t&lt;Type&gt; &amp;&gt;, std::as_const(value)};</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>{ctx, std::forward&lt;Type&gt;(value)};</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> }</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span>}</div>
</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Policy = as_is_t, <span class="keyword">typename</span> Type&gt;</div>
<div class="foldopen" id="foldopen00189" data-start="{" data-end="}">
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="namespaceentt.html#aefa0d4c01cb554a8c4ff29154fba457a"> 189</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a8f82832c0a318d045d51e4cdc3f90c7e">meta_dispatch</a>(Type &amp;&amp;value) {</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_dispatch&lt;Policy, Type&gt;</a>(<a class="code hl_class" href="classentt_1_1locator.html">locator&lt;meta_ctx&gt;::value_or</a>(), std::forward&lt;Type&gt;(value));</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span>}</div>
</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">static</span> meta_type meta_arg(<span class="keyword">const</span> meta_ctx &amp;ctx, <span class="keyword">const</span> std::size_t index) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keyword">auto</span> &amp;&amp;context = internal::meta_context::from(ctx);</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <span class="keywordflow">return</span> {ctx, internal::meta_arg_node(context, Type{}, index)};</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span>}</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type&gt;</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">static</span> meta_type meta_arg(<span class="keyword">const</span> std::size_t index) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_arg&lt;Type&gt;</a>(<a class="code hl_function" href="classentt_1_1locator.html#ad7a9c3555e6ff2b67f9ad3af7f99a728">locator&lt;meta_ctx&gt;::value_or</a>(), index);</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span>}</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> </div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, auto Data&gt;</div>
<div class="foldopen" id="foldopen00226" data-start="{" data-end="}">
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="namespaceentt.html#ac14f35fbe2a40c6a94108b95507517fb"> 226</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#ac14f35fbe2a40c6a94108b95507517fb">meta_setter</a>([[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <a class="code hl_struct" href="structentt_1_1meta__handle.html">meta_handle</a> instance, [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> value) {</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(!std::is_same_v&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>), Type&gt; &amp;&amp; !std::is_same_v&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>), std::nullptr_t&gt;) {</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_member_function_pointer_v&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>)&gt; || std::is_function_v&lt;std::remove_reference_t&lt;std::remove_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>)&gt;&gt;&gt;) {</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keyword">using </span>descriptor = <a class="code hl_typedef" href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f">meta_function_helper_t</a>&lt;Type, <span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>)&gt;;</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <span class="keyword">using </span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a> = <a class="code hl_typedef" href="namespaceentt.html#a9ac8221f536d5ecb512dc433ec7a4fd1">type_list_element_t&lt;descriptor::is_static, typename descriptor::args_type&gt;</a>;</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <span class="keywordflow">if</span>(<span class="keyword">auto</span> *<span class="keyword">const</span> clazz = instance-&gt;try_cast&lt;Type&gt;(); clazz &amp;&amp; value.allow_cast&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a>&gt;()) {</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>, *clazz, value.cast&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a>&gt;());</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> }</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_member_object_pointer_v&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>)&gt;) {</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keyword">using </span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a> = std::remove_reference_t&lt;<span class="keyword">typename</span> <a class="code hl_typedef" href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f">meta_function_helper_t</a>&lt;Type, <span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>)&gt;::return_type&gt;;</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(!std::is_array_v&lt;data_type&gt; &amp;&amp; !std::is_const_v&lt;data_type&gt;) {</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="keywordflow">if</span>(<span class="keyword">auto</span> *<span class="keyword">const</span> clazz = instance-&gt;try_cast&lt;Type&gt;(); clazz &amp;&amp; value.allow_cast&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a>&gt;()) {</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>, *clazz) = value.cast&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a>&gt;();</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> }</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> }</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <span class="keyword">using </span><a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a> = std::remove_reference_t&lt;<span class="keyword">decltype</span>(*Data)&gt;;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> </div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(!std::is_array_v&lt;data_type&gt; &amp;&amp; !std::is_const_v&lt;data_type&gt;) {</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keywordflow">if</span>(value.allow_cast&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a>&gt;()) {</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a> = value.cast&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">data_type</a>&gt;();</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> }</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> }</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> }</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> }</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> </div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span>}</div>
</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> </div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, auto Data, <span class="keyword">typename</span> Policy = as_is_t&gt;</div>
<div class="foldopen" id="foldopen00275" data-start="{" data-end="}">
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"><a class="line" href="namespaceentt.html#aa754d1db973d40e40f7b1aa6aebb7ab3"> 275</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#aa754d1db973d40e40f7b1aa6aebb7ab3">meta_getter</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1meta__ctx.html">meta_ctx</a> &amp;ctx, [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] <a class="code hl_struct" href="structentt_1_1meta__handle.html">meta_handle</a> instance) {</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</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">Data</a>)&gt; || std::is_function_v&lt;std::remove_reference_t&lt;std::remove_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>)&gt;&gt;&gt;) {</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(!std::is_array_v&lt;std::remove_cv_t&lt;std::remove_reference_t&lt;std::invoke_result_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>), Type &amp;&gt;&gt;&gt;&gt;) {</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_v&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>), Type &amp;&gt;) {</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keywordflow">if</span>(<span class="keyword">auto</span> *clazz = instance-&gt;try_cast&lt;Type&gt;(); clazz) {</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_dispatch&lt;Policy&gt;</a>(ctx, std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>, *clazz));</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> }</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> </div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_v&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>), <span class="keyword">const</span> Type &amp;&gt;) {</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <span class="keywordflow">if</span>(<span class="keyword">auto</span> *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">fallback</a> = instance-&gt;try_cast&lt;<span class="keyword">const</span> Type&gt;(); <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">fallback</a>) {</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_dispatch&lt;Policy&gt;</a>(ctx, std::invoke(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>, *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">fallback</a>));</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> }</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> }</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> }</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> </div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>{<a class="code hl_variable" href="namespaceentt.html#aa7148c0f5c0a81e2c48c9d4e52d31f55">meta_ctx_arg</a>, ctx};</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_pointer_v&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>)&gt;) {</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_array_v&lt;std::remove_pointer_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>)&gt;&gt;) {</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>{<a class="code hl_variable" href="namespaceentt.html#aa7148c0f5c0a81e2c48c9d4e52d31f55">meta_ctx_arg</a>, ctx};</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_dispatch&lt;Policy&gt;</a>(ctx, *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>);</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> }</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_dispatch&lt;Policy&gt;</a>(ctx, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Data</a>);</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> }</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span>}</div>
</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> </div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, auto Data, <span class="keyword">typename</span> Policy = as_is_t&gt;</div>
<div class="foldopen" id="foldopen00312" data-start="{" data-end="}">
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"><a class="line" href="namespaceentt.html#a492632c2f27d1e0c745d73398ac534d3"> 312</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#aa754d1db973d40e40f7b1aa6aebb7ab3">meta_getter</a>(<a class="code hl_struct" href="structentt_1_1meta__handle.html">meta_handle</a> instance) {</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_getter&lt;Type, Data, Policy&gt;</a>(<a class="code hl_class" href="classentt_1_1locator.html">locator&lt;meta_ctx&gt;::value_or</a>(), std::move(instance));</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span>}</div>
</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> </div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span><span class="keyword">namespace </span>internal {</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> </div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Policy, <span class="keyword">typename</span> Candidate, <span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span>[[nodiscard]] meta_any meta_invoke_with_args(<span class="keyword">const</span> meta_ctx &amp;ctx, Candidate &amp;&amp;candidate, Args &amp;&amp;...args) {</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_void_v&lt;decltype(std::invoke(std::forward&lt;Candidate&gt;(candidate), args...))&gt;) {</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> std::invoke(std::forward&lt;Candidate&gt;(candidate), args...);</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> <span class="keywordflow">return</span> meta_any{ctx, std::in_place_type&lt;void&gt;};</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> <span class="keywordflow">return</span> meta_dispatch&lt;Policy&gt;(ctx, std::invoke(std::forward&lt;Candidate&gt;(candidate), args...));</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> }</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span>}</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> </div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Policy, <span class="keyword">typename</span> Candidate, std::size_t... Index&gt;</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span>[[nodiscard]] meta_any <a class="code hl_function" href="namespaceentt.html#a1f4a6163636762f35f9e984f1278905f">meta_invoke</a>(<span class="keyword">const</span> meta_ctx &amp;ctx, [[maybe_unused]] meta_handle instance, Candidate &amp;&amp;candidate, [[maybe_unused]] meta_any *<span class="keyword">const</span> args, std::index_sequence&lt;Index...&gt;) {</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <span class="keyword">using </span>descriptor = meta_function_helper_t&lt;Type, std::remove_reference_t&lt;Candidate&gt;&gt;;</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> </div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> <span class="comment">// NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic) - waiting for C++20 (and std::span)</span></div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_v&lt;std::remove_reference_t&lt;Candidate&gt;, <span class="keyword">const</span> Type &amp;, type_list_element_t&lt;Index, typename descriptor::args_type&gt;...&gt;) {</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> <span class="keywordflow">if</span>(<span class="keyword">const</span> <span class="keyword">auto</span> *<span class="keyword">const</span> clazz = instance-&gt;try_cast&lt;<span class="keyword">const</span> Type&gt;(); clazz &amp;&amp; ((args + Index)-&gt;allow_cast&lt;type_list_element_t&lt;Index, typename descriptor::args_type&gt;&gt;() &amp;&amp; ...)) {</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> <span class="keywordflow">return</span> meta_invoke_with_args&lt;Policy&gt;(ctx, std::forward&lt;Candidate&gt;(candidate), *clazz, (args + Index)-&gt;cast&lt;type_list_element_t&lt;Index, typename descriptor::args_type&gt;&gt;()...);</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> }</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_invocable_v&lt;std::remove_reference_t&lt;Candidate&gt;, Type &amp;, type_list_element_t&lt;Index, typename descriptor::args_type&gt;...&gt;) {</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> <span class="keywordflow">if</span>(<span class="keyword">auto</span> *<span class="keyword">const</span> clazz = instance-&gt;try_cast&lt;Type&gt;(); clazz &amp;&amp; ((args + Index)-&gt;allow_cast&lt;type_list_element_t&lt;Index, typename descriptor::args_type&gt;&gt;() &amp;&amp; ...)) {</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> <span class="keywordflow">return</span> meta_invoke_with_args&lt;Policy&gt;(ctx, std::forward&lt;Candidate&gt;(candidate), *clazz, (args + Index)-&gt;cast&lt;type_list_element_t&lt;Index, typename descriptor::args_type&gt;&gt;()...);</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> }</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> <span class="keywordflow">if</span>(((args + Index)-&gt;allow_cast&lt;type_list_element_t&lt;Index, typename descriptor::args_type&gt;&gt;() &amp;&amp; ...)) {</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <span class="keywordflow">return</span> meta_invoke_with_args&lt;Policy&gt;(ctx, std::forward&lt;Candidate&gt;(candidate), (args + Index)-&gt;cast&lt;type_list_element_t&lt;Index, typename descriptor::args_type&gt;&gt;()...);</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> }</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> }</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> <span class="comment">// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)</span></div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> </div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> <span class="keywordflow">return</span> meta_any{<a class="code hl_variable" href="namespaceentt.html#aa7148c0f5c0a81e2c48c9d4e52d31f55">meta_ctx_arg</a>, ctx};</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span>}</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> </div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span>... Args, std::size_t... Index&gt;</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span>[[nodiscard]] meta_any <a class="code hl_function" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">meta_construct</a>(<span class="keyword">const</span> meta_ctx &amp;ctx, meta_any *<span class="keyword">const</span> args, std::index_sequence&lt;Index...&gt;) {</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> <span class="comment">// NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic) - waiting for C++20 (and std::span)</span></div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <span class="keywordflow">if</span>(((args + Index)-&gt;allow_cast&lt;Args&gt;() &amp;&amp; ...)) {</div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> <span class="keywordflow">return</span> meta_any{ctx, std::in_place_type&lt;Type&gt;, (args + Index)-&gt;cast&lt;Args&gt;()...};</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> }</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> <span class="comment">// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)</span></div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> </div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> <span class="keywordflow">return</span> meta_any{<a class="code hl_variable" href="namespaceentt.html#aa7148c0f5c0a81e2c48c9d4e52d31f55">meta_ctx_arg</a>, ctx};</div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span>}</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> </div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span>} <span class="comment">// namespace internal</span></div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Policy = as_is_t, <span class="keyword">typename</span> Cand<span class="keywordtype">id</span>ate&gt;</div>
<div class="foldopen" id="foldopen00383" data-start="{" data-end="}">
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno"><a class="line" href="namespaceentt.html#a1f4a6163636762f35f9e984f1278905f"> 383</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a1f4a6163636762f35f9e984f1278905f">meta_invoke</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1meta__ctx.html">meta_ctx</a> &amp;ctx, <a class="code hl_struct" href="structentt_1_1meta__handle.html">meta_handle</a> instance, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a> &amp;&amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> <span class="keywordflow">return</span> internal::meta_invoke&lt;Type, Policy&gt;(ctx, std::move(instance), std::forward&lt;Candidate&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>, std::make_index_sequence&lt;<a class="code hl_typedef" href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f">meta_function_helper_t</a>&lt;Type, std::remove_reference_t&lt;Candidate&gt;&gt;::args_type::size&gt;{});</div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span>}</div>
</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> </div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Policy = as_is_t, <span class="keyword">typename</span> Cand<span class="keywordtype">id</span>ate&gt;</div>
<div class="foldopen" id="foldopen00398" data-start="{" data-end="}">
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"><a class="line" href="namespaceentt.html#a8befe85c5ee65562cff4dadac3dc00ef"> 398</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a1f4a6163636762f35f9e984f1278905f">meta_invoke</a>(<a class="code hl_struct" href="structentt_1_1meta__handle.html">meta_handle</a> instance, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a> &amp;&amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_invoke&lt;Type, Policy&gt;</a>(<a class="code hl_class" href="classentt_1_1locator.html">locator&lt;meta_ctx&gt;::value_or</a>(), std::move(instance), std::forward&lt;Candidate&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>);</div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span>}</div>
</div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> </div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno"> 417</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, auto Cand<span class="keywordtype">id</span>ate, <span class="keyword">typename</span> Policy = as_is_t&gt;</div>
<div class="foldopen" id="foldopen00418" data-start="{" data-end="}">
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"><a class="line" href="namespaceentt.html#ac23a3b88b27196cb423e5d45eada1348"> 418</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a1f4a6163636762f35f9e984f1278905f">meta_invoke</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1meta__ctx.html">meta_ctx</a> &amp;ctx, <a class="code hl_struct" href="structentt_1_1meta__handle.html">meta_handle</a> instance, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno"> 419</span> <span class="keywordflow">return</span> internal::meta_invoke&lt;Type, Policy&gt;(ctx, std::move(instance), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>, std::make_index_sequence&lt;<a class="code hl_typedef" href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f">meta_function_helper_t</a>&lt;Type, std::remove_reference_t&lt;<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>)&gt;&gt;::args_type::size&gt;{});</div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"> 420</span>}</div>
</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> </div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, auto Cand<span class="keywordtype">id</span>ate, <span class="keyword">typename</span> Policy = as_is_t&gt;</div>
<div class="foldopen" id="foldopen00432" data-start="{" data-end="}">
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"><a class="line" href="namespaceentt.html#aef1b2e11225caa53d5880e81915e9316"> 432</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a1f4a6163636762f35f9e984f1278905f">meta_invoke</a>(<a class="code hl_struct" href="structentt_1_1meta__handle.html">meta_handle</a> instance, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_invoke&lt;Type, Candidate, Policy&gt;</a>(<a class="code hl_class" href="classentt_1_1locator.html">locator&lt;meta_ctx&gt;::value_or</a>(), std::move(instance), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>);</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno"> 434</span>}</div>
</div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno"> 435</span> </div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"> 449</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>&gt;</div>
<div class="foldopen" id="foldopen00450" data-start="{" data-end="}">
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno"><a class="line" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a"> 450</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> <a class="code hl_function" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">meta_construct</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1meta__ctx.html">meta_ctx</a> &amp;ctx, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno"> 451</span> <span class="keywordflow">return</span> internal::meta_construct&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...&gt;(ctx, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>, std::index_sequence_for&lt;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...&gt;{});</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno"> 452</span>}</div>
</div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno"> 453</span> </div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno"> 461</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>&gt;</div>
<div class="foldopen" id="foldopen00462" data-start="{" data-end="}">
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"><a class="line" href="namespaceentt.html#a3b0d075524517183181aa512417358a0"> 462</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> <a class="code hl_function" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">meta_construct</a>(<a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno"> 463</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">meta_construct</a>&lt;Type, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>...&gt;(<a class="code hl_function" href="classentt_1_1locator.html#ad7a9c3555e6ff2b67f9ad3af7f99a728">locator&lt;meta_ctx&gt;::value_or</a>(), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>);</div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"> 464</span>}</div>
</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span> </div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"> 481</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Policy = as_is_t, <span class="keyword">typename</span> Cand<span class="keywordtype">id</span>ate&gt;</div>
<div class="foldopen" id="foldopen00482" data-start="{" data-end="}">
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno"><a class="line" href="namespaceentt.html#a21d052556804c409d65dcf2985dc44e2"> 482</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> <a class="code hl_function" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">meta_construct</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1meta__ctx.html">meta_ctx</a> &amp;ctx, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a> &amp;&amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno"> 483</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(<a class="code hl_typedef" href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f">meta_function_helper_t&lt;Type, Candidate&gt;::is_static</a> || std::is_class_v&lt;std::remove_cv_t&lt;std::remove_reference_t&lt;Candidate&gt;&gt;&gt;) {</div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno"> 484</span> <span class="keywordflow">return</span> internal::meta_invoke&lt;Type, Policy&gt;(ctx, {}, std::forward&lt;Candidate&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>, std::make_index_sequence&lt;meta_function_helper_t&lt;Type, std::remove_reference_t&lt;Candidate&gt;&gt;::args_type::size&gt;{});</div>
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno"> 485</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno"> 486</span> <span class="comment">// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) - waiting for C++20 (and std::span)</span></div>
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno"> 487</span> <span class="keywordflow">return</span> internal::meta_invoke&lt;Type, Policy&gt;(ctx, *<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>, std::forward&lt;Candidate&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a> + 1u, std::make_index_sequence&lt;<a class="code hl_typedef" href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f">meta_function_helper_t</a>&lt;Type, std::remove_reference_t&lt;Candidate&gt;&gt;::args_type::size&gt;{});</div>
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno"> 488</span> }</div>
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno"> 489</span>}</div>
</div>
<div class="line"><a id="l00490" name="l00490"></a><span class="lineno"> 490</span> </div>
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno"> 500</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Policy = as_is_t, <span class="keyword">typename</span> Cand<span class="keywordtype">id</span>ate&gt;</div>
<div class="foldopen" id="foldopen00501" data-start="{" data-end="}">
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno"><a class="line" href="namespaceentt.html#a7ba2afbd0762cd23f85df6d65d6a8413"> 501</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">meta_construct</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a> &amp;&amp;<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00502" name="l00502"></a><span class="lineno"> 502</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_construct&lt;Type, Policy&gt;</a>(<a class="code hl_class" href="classentt_1_1locator.html">locator&lt;meta_ctx&gt;::value_or</a>(), std::forward&lt;Candidate&gt;(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">candidate</a>), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>);</div>
<div class="line"><a id="l00503" name="l00503"></a><span class="lineno"> 503</span>}</div>
</div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno"> 504</span> </div>
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno"> 519</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, auto Cand<span class="keywordtype">id</span>ate, <span class="keyword">typename</span> Policy = as_is_t&gt;</div>
<div class="foldopen" id="foldopen00520" data-start="{" data-end="}">
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno"><a class="line" href="namespaceentt.html#a7f1ee2282bd9da8ef9a8b1f2c49c431b"> 520</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">meta_construct</a>(<span class="keyword">const</span> <a class="code hl_class" href="classentt_1_1meta__ctx.html">meta_ctx</a> &amp;ctx, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno"> 521</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_construct&lt;Type, Policy&gt;</a>(ctx, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Candidate</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>);</div>
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno"> 522</span>}</div>
</div>
<div class="line"><a id="l00523" name="l00523"></a><span class="lineno"> 523</span> </div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno"> 532</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Type, auto Cand<span class="keywordtype">id</span>ate, <span class="keyword">typename</span> Policy = as_is_t&gt;</div>
<div class="foldopen" id="foldopen00533" data-start="{" data-end="}">
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno"><a class="line" href="namespaceentt.html#a5fbe3810e19337b32c66c6bab769338a"> 533</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] std::enable_if_t&lt;is_meta_policy_v&lt;Policy&gt;, <a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a>&gt; <a class="code hl_function" href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">meta_construct</a>(<a class="code hl_class" href="classentt_1_1meta__any.html">meta_any</a> *<span class="keyword">const</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
<div class="line"><a id="l00534" name="l00534"></a><span class="lineno"> 534</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">meta_construct&lt;Type, Candidate, Policy&gt;</a>(<a class="code hl_class" href="classentt_1_1locator.html">locator&lt;meta_ctx&gt;::value_or</a>(), <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>);</div>
<div class="line"><a id="l00535" name="l00535"></a><span class="lineno"> 535</span>}</div>
</div>
<div class="line"><a id="l00536" name="l00536"></a><span class="lineno"> 536</span> </div>
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno"> 537</span>} <span class="comment">// namespace entt</span></div>
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno"> 538</span> </div>
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno"> 539</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassentt_1_1locator_html"><div class="ttname"><a href="classentt_1_1locator.html">entt::locator</a></div><div class="ttdoc">Service locator, nothing more.</div><div class="ttdef"><b>Definition</b> <a href="locator_8hpp_source.html#l00027">locator.hpp:27</a></div></div>
<div class="ttc" id="aclassentt_1_1locator_html_ad7a9c3555e6ff2b67f9ad3af7f99a728"><div class="ttname"><a href="classentt_1_1locator.html#ad7a9c3555e6ff2b67f9ad3af7f99a728">entt::locator::value_or</a></div><div class="ttdeci">static Service &amp; value_or(Args &amp;&amp;...args)</div><div class="ttdoc">Returns a service if available or sets it from a fallback type.</div><div class="ttdef"><b>Definition</b> <a href="locator_8hpp_source.html#l00088">locator.hpp:88</a></div></div>
<div class="ttc" id="aclassentt_1_1meta__any_html"><div class="ttname"><a href="classentt_1_1meta__any.html">entt::meta_any</a></div><div class="ttdoc">Opaque wrapper for values of any type.</div><div class="ttdef"><b>Definition</b> <a href="meta_8hpp_source.html#l00179">meta.hpp:179</a></div></div>
<div class="ttc" id="aclassentt_1_1meta__ctx_html"><div class="ttname"><a href="classentt_1_1meta__ctx.html">entt::meta_ctx</a></div><div class="ttdoc">Opaque meta context type.</div><div class="ttdef"><b>Definition</b> <a href="context_8hpp_source.html#l00034">context.hpp:34</a></div></div>
<div class="ttc" id="aclassentt_1_1meta__function__helper_html"><div class="ttname"><a href="classentt_1_1meta__function__helper.html">entt::meta_function_helper</a></div><div class="ttdoc">Meta function helper.</div><div class="ttdef"><b>Definition</b> <a href="#l00125">utility.hpp:125</a></div></div>
<div class="ttc" id="aclassentt_1_1meta__function__helper_html_a74ea1aa3fe0edfad96898520cbf6eeae"><div class="ttname"><a href="classentt_1_1meta__function__helper.html#a74ea1aa3fe0edfad96898520cbf6eeae">entt::meta_function_helper::type</a></div><div class="ttdeci">decltype(get_rid_of_noexcept(std::declval&lt; Candidate &gt;())) type</div><div class="ttdoc">The meta function descriptor of the given function.</div><div class="ttdef"><b>Definition</b> <a href="#l00143">utility.hpp:143</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_a1f4a6163636762f35f9e984f1278905f"><div class="ttname"><a href="namespaceentt.html#a1f4a6163636762f35f9e984f1278905f">entt::meta_invoke</a></div><div class="ttdeci">std::enable_if_t&lt; is_meta_policy_v&lt; Policy &gt;, meta_any &gt; meta_invoke(const meta_ctx &amp;ctx, meta_handle instance, Candidate &amp;&amp;candidate, meta_any *const args)</div><div class="ttdoc">Tries to invoke an object given a list of erased parameters.</div><div class="ttdef"><b>Definition</b> <a href="#l00383">utility.hpp:383</a></div></div>
<div class="ttc" id="anamespaceentt_html_a396e96dc705319d2fc6ded344292004f"><div class="ttname"><a href="namespaceentt.html#a396e96dc705319d2fc6ded344292004f">entt::meta_function_helper_t</a></div><div class="ttdeci">typename meta_function_helper&lt; Type, Candidate &gt;::type meta_function_helper_t</div><div class="ttdoc">Helper type.</div><div class="ttdef"><b>Definition</b> <a href="#l00152">utility.hpp:152</a></div></div>
<div class="ttc" id="anamespaceentt_html_a571cc8688ebf018c16e2a15f6c45764a"><div class="ttname"><a href="namespaceentt.html#a571cc8688ebf018c16e2a15f6c45764a">entt::meta_construct</a></div><div class="ttdeci">meta_any meta_construct(const meta_ctx &amp;ctx, meta_any *const args)</div><div class="ttdoc">Tries to construct an instance given a list of erased parameters.</div><div class="ttdef"><b>Definition</b> <a href="#l00450">utility.hpp:450</a></div></div>
<div class="ttc" id="anamespaceentt_html_a8f82832c0a318d045d51e4cdc3f90c7e"><div class="ttname"><a href="namespaceentt.html#a8f82832c0a318d045d51e4cdc3f90c7e">entt::meta_dispatch</a></div><div class="ttdeci">std::enable_if_t&lt; is_meta_policy_v&lt; Policy &gt;, meta_any &gt; meta_dispatch(const meta_ctx &amp;ctx, Type &amp;&amp;value)</div><div class="ttdoc">Wraps a value depending on the given policy.</div><div class="ttdef"><b>Definition</b> <a href="#l00168">utility.hpp:168</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_aa7148c0f5c0a81e2c48c9d4e52d31f55"><div class="ttname"><a href="namespaceentt.html#aa7148c0f5c0a81e2c48c9d4e52d31f55">entt::meta_ctx_arg</a></div><div class="ttdeci">constexpr meta_ctx_arg_t meta_ctx_arg</div><div class="ttdoc">Constant of type meta_context_arg_t used to disambiguate calls.</div><div class="ttdef"><b>Definition</b> <a href="context_8hpp_source.html#l00031">context.hpp:31</a></div></div>
<div class="ttc" id="anamespaceentt_html_aa754d1db973d40e40f7b1aa6aebb7ab3"><div class="ttname"><a href="namespaceentt.html#aa754d1db973d40e40f7b1aa6aebb7ab3">entt::meta_getter</a></div><div class="ttdeci">std::enable_if_t&lt; is_meta_policy_v&lt; Policy &gt;, meta_any &gt; meta_getter(const meta_ctx &amp;ctx, meta_handle instance)</div><div class="ttdoc">Gets the value of a given variable.</div><div class="ttdef"><b>Definition</b> <a href="#l00275">utility.hpp:275</a></div></div>
<div class="ttc" id="anamespaceentt_html_ac14f35fbe2a40c6a94108b95507517fb"><div class="ttname"><a href="namespaceentt.html#ac14f35fbe2a40c6a94108b95507517fb">entt::meta_setter</a></div><div class="ttdeci">bool meta_setter(meta_handle instance, meta_any value)</div><div class="ttdoc">Sets the value of a given variable.</div><div class="ttdef"><b>Definition</b> <a href="#l00226">utility.hpp:226</a></div></div>
<div class="ttc" id="astructentt_1_1meta__function__descriptor__traits_html"><div class="ttname"><a href="structentt_1_1meta__function__descriptor__traits.html">entt::meta_function_descriptor_traits</a></div><div class="ttdoc">Meta function descriptor traits.</div><div class="ttdef"><b>Definition</b> <a href="#l00024">utility.hpp:24</a></div></div>
<div class="ttc" id="astructentt_1_1meta__function__descriptor__traits_html_a109cf5434966e6ff7ba8dc20045d52cb"><div class="ttname"><a href="structentt_1_1meta__function__descriptor__traits.html#a109cf5434966e6ff7ba8dc20045d52cb">entt::meta_function_descriptor_traits::is_static</a></div><div class="ttdeci">static constexpr bool is_static</div><div class="ttdoc">True if the meta function is static, false otherwise.</div><div class="ttdef"><b>Definition</b> <a href="#l00031">utility.hpp:31</a></div></div>
<div class="ttc" id="astructentt_1_1meta__function__descriptor__traits_html_a6dbea410eac186bc399b0542448209ff"><div class="ttname"><a href="structentt_1_1meta__function__descriptor__traits.html#a6dbea410eac186bc399b0542448209ff">entt::meta_function_descriptor_traits::args_type</a></div><div class="ttdeci">Args args_type</div><div class="ttdoc">Meta function arguments.</div><div class="ttdef"><b>Definition</b> <a href="#l00028">utility.hpp:28</a></div></div>
<div class="ttc" id="astructentt_1_1meta__function__descriptor__traits_html_abb5a7b79fcad9c6d6483be10e3aaeb3a"><div class="ttname"><a href="structentt_1_1meta__function__descriptor__traits.html#abb5a7b79fcad9c6d6483be10e3aaeb3a">entt::meta_function_descriptor_traits::is_const</a></div><div class="ttdeci">static constexpr bool is_const</div><div class="ttdoc">True if the meta function is const, false otherwise.</div><div class="ttdef"><b>Definition</b> <a href="#l00033">utility.hpp:33</a></div></div>
<div class="ttc" id="astructentt_1_1meta__function__descriptor__traits_html_ad210fafe14b4744ef7f1aaafe67e5a83"><div class="ttname"><a href="structentt_1_1meta__function__descriptor__traits.html#ad210fafe14b4744ef7f1aaafe67e5a83">entt::meta_function_descriptor_traits::return_type</a></div><div class="ttdeci">Ret return_type</div><div class="ttdoc">Meta function return type.</div><div class="ttdef"><b>Definition</b> <a href="#l00026">utility.hpp:26</a></div></div>
<div class="ttc" id="astructentt_1_1meta__function__descriptor_html"><div class="ttname"><a href="structentt_1_1meta__function__descriptor.html">entt::meta_function_descriptor</a></div><div class="ttdoc">Primary template isn't defined on purpose.</div><div class="ttdef"><b>Definition</b> <a href="#l00038">utility.hpp:38</a></div></div>
<div class="ttc" id="astructentt_1_1meta__handle_html"><div class="ttname"><a href="structentt_1_1meta__handle.html">entt::meta_handle</a></div><div class="ttdoc">Opaque pointers to instances of any type.</div><div class="ttdef"><b>Definition</b> <a href="meta_8hpp_source.html#l00651">meta.hpp:651</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><!-- 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
</small></address>
</body>
</html>