API reference v3.15.0
This commit is contained in:
+61
-52
@@ -3,13 +3,15 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.10.0"/>
|
||||
<meta name="generator" content="Doxygen 1.13.2"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>EnTT: src/entt/core/memory.hpp Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<script type="text/javascript" src="clipboard.js"></script>
|
||||
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="cookie.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
@@ -23,7 +25,7 @@
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">EnTT<span id="projectnumber"> 3.14.0</span>
|
||||
<div id="projectname">EnTT<span id="projectnumber"> 3.15.0</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -31,18 +33,23 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.10.0 -->
|
||||
<!-- Generated by Doxygen 1.13.2 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() { codefold.init(0); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
initMenu('',true,false,'search.php','Search',false);
|
||||
$(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
@@ -50,7 +57,7 @@ $(function() {
|
||||
<div id="main-nav"></div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() { codefold.init(0); });
|
||||
$(function(){ initResizable(false); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<!-- window showing the filter options -->
|
||||
@@ -79,6 +86,7 @@ $(function() { codefold.init(0); });
|
||||
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_66e9674e8206a335795995fa32a03c91.html">entt</a></li><li class="navelem"><a class="el" href="dir_de8f4e6ba3f54a2a21309f742e93a373.html">core</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div id="doc-content">
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">memory.hpp</div></div>
|
||||
</div><!--header-->
|
||||
@@ -94,92 +102,92 @@ $(function() { codefold.init(0); });
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include "../config/config.h"</span></div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceentt.html">entt</a> {</div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span></div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">template</span><<span class="keyword">typename</span> Type></div>
|
||||
<div class="foldopen" id="foldopen00020" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850"> 20</a></span>[[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">nodiscard</a>]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">to_address</a>(Type &&<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850"> 20</a></span>[[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">to_address</a>(Type &&ptr) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::is_pointer_v<std::decay_t<Type>>) {</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>;</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordflow">return</span> ptr;</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">to_address</a>(std::forward<Type>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>).<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">operator</a>->());</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">to_address</a>(std::forward<Type>(ptr).operator->());</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> }</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span></div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">template</span><<span class="keyword">typename</span> Allocator></div>
|
||||
<div class="foldopen" id="foldopen00035" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="namespaceentt.html#ae934980252d1f2ce8f2473c8d74347df"> 35</a></span><span class="keyword">constexpr</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespaceentt.html#ae934980252d1f2ce8f2473c8d74347df">propagate_on_container_copy_assignment</a>([[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="namespaceentt.html#ae934980252d1f2ce8f2473c8d74347df"> 35</a></span><span class="keyword">constexpr</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespaceentt.html#ae934980252d1f2ce8f2473c8d74347df">propagate_on_container_copy_assignment</a>([[maybe_unused]] Allocator &lhs, [[maybe_unused]] Allocator &rhs) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::allocator_traits<Allocator>::propagate_on_container_copy_assignment::value) {</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a> = <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>;</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> lhs = rhs;</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> }</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span></div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="keyword">template</span><<span class="keyword">typename</span> Allocator></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="namespaceentt.html#a46cd263b358a2d495d4f4ee27d4537d7"> 48</a></span><span class="keyword">constexpr</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespaceentt.html#a46cd263b358a2d495d4f4ee27d4537d7">propagate_on_container_move_assignment</a>([[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="namespaceentt.html#a46cd263b358a2d495d4f4ee27d4537d7"> 48</a></span><span class="keyword">constexpr</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespaceentt.html#a46cd263b358a2d495d4f4ee27d4537d7">propagate_on_container_move_assignment</a>([[maybe_unused]] Allocator &lhs, [[maybe_unused]] Allocator &rhs) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::allocator_traits<Allocator>::propagate_on_container_move_assignment::value) {</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a> = std::move(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>);</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> lhs = std::move(rhs);</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span></div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="keyword">template</span><<span class="keyword">typename</span> Allocator></div>
|
||||
<div class="foldopen" id="foldopen00061" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="namespaceentt.html#a0dd7ed3d3f11933cd542d8f4646cd695"> 61</a></span><span class="keyword">constexpr</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespaceentt.html#a0dd7ed3d3f11933cd542d8f4646cd695">propagate_on_container_swap</a>([[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, [[<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">maybe_unused</a>]] Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="namespaceentt.html#a0dd7ed3d3f11933cd542d8f4646cd695"> 61</a></span><span class="keyword">constexpr</span> <span class="keywordtype">void</span> <a class="code hl_function" href="namespaceentt.html#a0dd7ed3d3f11933cd542d8f4646cd695">propagate_on_container_swap</a>([[maybe_unused]] Allocator &lhs, [[maybe_unused]] Allocator &rhs) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(std::allocator_traits<Allocator>::propagate_on_container_swap::value) {</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">using </span>std::swap;</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <a class="code hl_function" href="namespaceentt.html#a85aff290a542f0f053b993b507410b21">swap</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>);</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <a class="code hl_function" href="namespaceentt.html#a2e05563b8d3e3b61cf9b06e9e0904cc7">swap</a>(lhs, rhs);</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> ENTT_ASSERT_CONSTEXPR(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">lhs</a> == <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rhs</a>, <span class="stringliteral">"Cannot swap the containers"</span>);</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> ENTT_ASSERT_CONSTEXPR(lhs == rhs, <span class="stringliteral">"Cannot swap the containers"</span>);</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span></div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="keyword">template</span><<span class="keyword">typename</span> Allocator></div>
|
||||
<div class="foldopen" id="foldopen00075" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="structentt_1_1allocation__deleter.html"> 75</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structentt_1_1allocation__deleter.html">allocation_deleter</a>: <span class="keyword">private</span> Allocator {</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="structentt_1_1allocation__deleter.html"> 75</a></span><span class="keyword">struct </span><a class="code hl_function" href="structentt_1_1allocation__deleter.html#a5adbf1ba5d47a86d0b67d2c565fed220">allocation_deleter</a>: <span class="keyword">private</span> Allocator {</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="structentt_1_1allocation__deleter.html#abce9d9de78a31b79e98745f4e029c863"> 77</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structentt_1_1allocation__deleter.html#abce9d9de78a31b79e98745f4e029c863">allocator_type</a> = Allocator;</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c"> 79</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c">pointer</a> = <span class="keyword">typename</span> std::allocator_traits<Allocator>::pointer;</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span></div>
|
||||
<div class="foldopen" id="foldopen00085" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="structentt_1_1allocation__deleter.html#a5adbf1ba5d47a86d0b67d2c565fed220"> 85</a></span> <span class="keyword">constexpr</span> <a class="code hl_function" href="structentt_1_1allocation__deleter.html#a5adbf1ba5d47a86d0b67d2c565fed220">allocation_deleter</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="structentt_1_1allocation__deleter.html#abce9d9de78a31b79e98745f4e029c863">allocator_type</a> &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">alloc</a>) <span class="keyword">noexcept</span>(std::is_nothrow_copy_constructible_v<allocator_type>)</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> : Allocator{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">alloc</a>} {}</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="structentt_1_1allocation__deleter.html#a5adbf1ba5d47a86d0b67d2c565fed220"> 85</a></span> <span class="keyword">constexpr</span> <a class="code hl_function" href="structentt_1_1allocation__deleter.html#a5adbf1ba5d47a86d0b67d2c565fed220">allocation_deleter</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="structentt_1_1allocation__deleter.html#abce9d9de78a31b79e98745f4e029c863">allocator_type</a> &alloc) <span class="keyword">noexcept</span>(std::is_nothrow_copy_constructible_v<allocator_type>)</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> : Allocator{alloc} {}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span></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_1allocation__deleter.html#aaeea55e9539671ec5d6b1660f25e57d3"> 92</a></span> <span class="keyword">constexpr</span> <span class="keywordtype">void</span> <a class="code hl_function" href="structentt_1_1allocation__deleter.html#aaeea55e9539671ec5d6b1660f25e57d3">operator()</a>(<a class="code hl_typedef" href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c">pointer</a> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>) <span class="keyword">noexcept</span>(std::is_nothrow_destructible_v<typename allocator_type::value_type>) {</div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="structentt_1_1allocation__deleter.html#aaeea55e9539671ec5d6b1660f25e57d3"> 92</a></span> <span class="keyword">constexpr</span> <span class="keywordtype">void</span> <a class="code hl_function" href="structentt_1_1allocation__deleter.html#aaeea55e9539671ec5d6b1660f25e57d3">operator()</a>(<a class="code hl_typedef" href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c">pointer</a> ptr) <span class="keyword">noexcept</span>(std::is_nothrow_destructible_v<typename allocator_type::value_type>) {</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">using </span>alloc_traits = std::allocator_traits<Allocator>;</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> alloc_traits::destroy(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">to_address</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>));</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> alloc_traits::deallocate(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>, 1u);</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> alloc_traits::destroy(*<span class="keyword">this</span>, <a class="code hl_function" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">to_address</a>(ptr));</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> alloc_traits::deallocate(*<span class="keyword">this</span>, ptr, 1u);</div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>></div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span></div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... Args></div>
|
||||
<div class="foldopen" id="foldopen00109" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="namespaceentt.html#ae3729f1b7699d013f982b2de2ec781f9"> 109</a></span>ENTT_CONSTEXPR <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#ae3729f1b7699d013f982b2de2ec781f9">allocate_unique</a>(Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a> &&...<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="namespaceentt.html#ae3729f1b7699d013f982b2de2ec781f9"> 109</a></span>ENTT_CONSTEXPR <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#ae3729f1b7699d013f982b2de2ec781f9">allocate_unique</a>(Allocator &allocator, Args &&...args) {</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">static_assert</span>(!std::is_array_v<Type>, <span class="stringliteral">"Array types are not supported"</span>);</div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">using </span>alloc_traits = <span class="keyword">typename</span> std::allocator_traits<Allocator>::template <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">rebind_traits<Type></a>;</div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">using </span>alloc_traits = <span class="keyword">typename</span> std::allocator_traits<Allocator>::template rebind_traits<Type>;</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">using </span>allocator_type = <span class="keyword">typename</span> alloc_traits::allocator_type;</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> allocator_type <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">alloc</a>{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>};</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a> = alloc_traits::allocate(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">alloc</a>, 1u);</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> allocator_type alloc{allocator};</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">auto</span> ptr = alloc_traits::allocate(alloc, 1u);</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> ENTT_TRY {</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> alloc_traits::construct(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">alloc</a>, <a class="code hl_function" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">to_address</a>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>), std::forward<Args>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...);</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> alloc_traits::construct(alloc, <a class="code hl_function" href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">to_address</a>(ptr), std::forward<Args>(args)...);</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> }</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> ENTT_CATCH {</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> alloc_traits::deallocate(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">alloc</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>, 1u);</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> alloc_traits::deallocate(alloc, ptr, 1u);</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> ENTT_THROW;</div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> }</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordflow">return</span> std::unique_ptr<Type, allocation_deleter<allocator_type>>{<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">ptr</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">alloc</a>};</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordflow">return</span> std::unique_ptr<Type, allocation_deleter<allocator_type>>{ptr, alloc};</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span></div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span><span class="keyword">namespace </span>internal {</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><<span class="keyword">typename</span> Type></div>
|
||||
@@ -235,24 +243,25 @@ $(function() { codefold.init(0); });
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span>};</div>
|
||||
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span>} <span class="comment">// namespace internal</span></div>
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>></div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span></div>
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... Args></div>
|
||||
<div class="foldopen" id="foldopen00201" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="namespaceentt.html#ac447ddab9d528647a79fd9aca429faed"> 201</a></span><span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#ac447ddab9d528647a79fd9aca429faed">uses_allocator_construction_args</a>(<span class="keyword">const</span> Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a> &&...<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keywordflow">return</span> internal::uses_allocator_construction<Type>::args(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>, std::forward<Args>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...);</div>
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="namespaceentt.html#ac447ddab9d528647a79fd9aca429faed"> 201</a></span><span class="keyword">constexpr</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespaceentt.html#ac447ddab9d528647a79fd9aca429faed">uses_allocator_construction_args</a>(<span class="keyword">const</span> Allocator &allocator, Args &&...args) <span class="keyword">noexcept</span> {</div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keywordflow">return</span> internal::uses_allocator_construction<Type>::args(allocator, std::forward<Args>(args)...);</div>
|
||||
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
|
||||
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>></div>
|
||||
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span></div>
|
||||
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... Args></div>
|
||||
<div class="foldopen" id="foldopen00219" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"><a class="line" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7"> 219</a></span><span class="keyword">constexpr</span> Type <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">make_obj_using_allocator</a>(<span class="keyword">const</span> Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a> &&...<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
|
||||
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordflow">return</span> std::make_from_tuple<Type>(internal::uses_allocator_construction<Type>::args(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>, std::forward<Args>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...));</div>
|
||||
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"><a class="line" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7"> 219</a></span><span class="keyword">constexpr</span> Type <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">make_obj_using_allocator</a>(<span class="keyword">const</span> Allocator &allocator, Args &&...args) {</div>
|
||||
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordflow">return</span> std::make_from_tuple<Type>(internal::uses_allocator_construction<Type>::args(allocator, std::forward<Args>(args)...));</div>
|
||||
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> </div>
|
||||
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a>></div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span></div>
|
||||
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span><span class="keyword">template</span><<span class="keyword">typename</span> Type, <span class="keyword">typename</span> Allocator, <span class="keyword">typename</span>... Args></div>
|
||||
<div class="foldopen" id="foldopen00238" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"><a class="line" href="namespaceentt.html#a81f946567d220e7c8814636333d0cbe0"> 238</a></span><span class="keyword">constexpr</span> Type *<a class="code hl_function" href="namespaceentt.html#a81f946567d220e7c8814636333d0cbe0">uninitialized_construct_using_allocator</a>(Type *value, <span class="keyword">const</span> Allocator &<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>, <a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">Args</a> &&...<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>) {</div>
|
||||
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keywordflow">return</span> std::apply([value](<span class="keyword">auto</span> &&...<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>) { return ::new(value) Type(std::forward<<span class="keyword">decltype</span>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>)>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">curr</a>)...); }, internal::uses_allocator_construction<Type>::args(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">allocator</a>, std::forward<Args>(<a class="code hl_function" href="namespaceentt.html#a12e4d0c58f9c4cc6f5513c39c530b9b7">args</a>)...));</div>
|
||||
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"><a class="line" href="namespaceentt.html#a81f946567d220e7c8814636333d0cbe0"> 238</a></span><span class="keyword">constexpr</span> Type *<a class="code hl_function" href="namespaceentt.html#a81f946567d220e7c8814636333d0cbe0">uninitialized_construct_using_allocator</a>(Type *value, <span class="keyword">const</span> Allocator &allocator, Args &&...args) {</div>
|
||||
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keywordflow">return</span> std::apply([value](<span class="keyword">auto</span> &&...curr) { return ::new(value) Type(std::forward<<span class="keyword">decltype</span>(curr)>(curr)...); }, internal::uses_allocator_construction<Type>::args(allocator, std::forward<Args>(args)...));</div>
|
||||
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> </div>
|
||||
@@ -262,14 +271,13 @@ $(function() { codefold.init(0); });
|
||||
<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_a0dd7ed3d3f11933cd542d8f4646cd695"><div class="ttname"><a href="namespaceentt.html#a0dd7ed3d3f11933cd542d8f4646cd695">entt::propagate_on_container_swap</a></div><div class="ttdeci">constexpr void propagate_on_container_swap(Allocator &lhs, Allocator &rhs) noexcept</div><div class="ttdoc">Utility function to design allocation-aware containers.</div><div class="ttdef"><b>Definition</b> <a href="#l00061">memory.hpp:61</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 &allocator, Args &&...args)</div><div class="ttdoc">Uses-allocator construction utility (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="#l00219">memory.hpp:219</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a2e05563b8d3e3b61cf9b06e9e0904cc7"><div class="ttname"><a href="namespaceentt.html#a2e05563b8d3e3b61cf9b06e9e0904cc7">entt::swap</a></div><div class="ttdeci">constexpr void swap(compressed_pair< First, Second > &lhs, compressed_pair< First, Second > &rhs) noexcept</div><div class="ttdoc">Swaps two compressed pair objects.</div><div class="ttdef"><b>Definition</b> <a href="compressed__pair_8hpp_source.html#l00243">compressed_pair.hpp:243</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a46cd263b358a2d495d4f4ee27d4537d7"><div class="ttname"><a href="namespaceentt.html#a46cd263b358a2d495d4f4ee27d4537d7">entt::propagate_on_container_move_assignment</a></div><div class="ttdeci">constexpr void propagate_on_container_move_assignment(Allocator &lhs, Allocator &rhs) noexcept</div><div class="ttdoc">Utility function to design allocation-aware containers.</div><div class="ttdef"><b>Definition</b> <a href="#l00048">memory.hpp:48</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a81f946567d220e7c8814636333d0cbe0"><div class="ttname"><a href="namespaceentt.html#a81f946567d220e7c8814636333d0cbe0">entt::uninitialized_construct_using_allocator</a></div><div class="ttdeci">constexpr Type * uninitialized_construct_using_allocator(Type *value, const Allocator &allocator, Args &&...args)</div><div class="ttdoc">Uses-allocator construction utility (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="#l00238">memory.hpp:238</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_a85aff290a542f0f053b993b507410b21"><div class="ttname"><a href="namespaceentt.html#a85aff290a542f0f053b993b507410b21">entt::swap</a></div><div class="ttdeci">constexpr void swap(compressed_pair< First, Second > &lhs, compressed_pair< First, Second > &rhs)</div><div class="ttdoc">Swaps two compressed pair objects.</div><div class="ttdef"><b>Definition</b> <a href="compressed__pair_8hpp_source.html#l00243">compressed_pair.hpp:243</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_ac447ddab9d528647a79fd9aca429faed"><div class="ttname"><a href="namespaceentt.html#ac447ddab9d528647a79fd9aca429faed">entt::uses_allocator_construction_args</a></div><div class="ttdeci">constexpr auto uses_allocator_construction_args(const Allocator &allocator, Args &&...args) noexcept</div><div class="ttdoc">Uses-allocator construction utility (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="#l00201">memory.hpp:201</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_ae3729f1b7699d013f982b2de2ec781f9"><div class="ttname"><a href="namespaceentt.html#ae3729f1b7699d013f982b2de2ec781f9">entt::allocate_unique</a></div><div class="ttdeci">constexpr auto allocate_unique(Allocator &allocator, Args &&...args)</div><div class="ttdoc">Allows std::unique_ptr to use allocators (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="#l00109">memory.hpp:109</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_ae934980252d1f2ce8f2473c8d74347df"><div class="ttname"><a href="namespaceentt.html#ae934980252d1f2ce8f2473c8d74347df">entt::propagate_on_container_copy_assignment</a></div><div class="ttdeci">constexpr void propagate_on_container_copy_assignment(Allocator &lhs, Allocator &rhs) noexcept</div><div class="ttdoc">Utility function to design allocation-aware containers.</div><div class="ttdef"><b>Definition</b> <a href="#l00035">memory.hpp:35</a></div></div>
|
||||
<div class="ttc" id="anamespaceentt_html_af0ecb90b45a53e3272d761c237a0d850"><div class="ttname"><a href="namespaceentt.html#af0ecb90b45a53e3272d761c237a0d850">entt::to_address</a></div><div class="ttdeci">constexpr auto to_address(Type &&ptr) noexcept</div><div class="ttdoc">Unwraps fancy pointers, does nothing otherwise (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="#l00020">memory.hpp:20</a></div></div>
|
||||
<div class="ttc" id="astructentt_1_1allocation__deleter_html"><div class="ttname"><a href="structentt_1_1allocation__deleter.html">entt::allocation_deleter</a></div><div class="ttdoc">Deleter for allocator-aware unique pointers (waiting for C++20).</div><div class="ttdef"><b>Definition</b> <a href="#l00075">memory.hpp:75</a></div></div>
|
||||
<div class="ttc" id="astructentt_1_1allocation__deleter_html_a37186f63eb16409b00b0261041b68c5c"><div class="ttname"><a href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c">entt::allocation_deleter::pointer</a></div><div class="ttdeci">typename std::allocator_traits< Allocator >::pointer pointer</div><div class="ttdoc">Pointer type.</div><div class="ttdef"><b>Definition</b> <a href="#l00079">memory.hpp:79</a></div></div>
|
||||
<div class="ttc" id="astructentt_1_1allocation__deleter_html_a5adbf1ba5d47a86d0b67d2c565fed220"><div class="ttname"><a href="structentt_1_1allocation__deleter.html#a5adbf1ba5d47a86d0b67d2c565fed220">entt::allocation_deleter::allocation_deleter</a></div><div class="ttdeci">constexpr allocation_deleter(const allocator_type &alloc) noexcept(std::is_nothrow_copy_constructible_v< allocator_type >)</div><div class="ttdoc">Inherited constructors.</div><div class="ttdef"><b>Definition</b> <a href="#l00085">memory.hpp:85</a></div></div>
|
||||
<div class="ttc" id="astructentt_1_1allocation__deleter_html_aaeea55e9539671ec5d6b1660f25e57d3"><div class="ttname"><a href="structentt_1_1allocation__deleter.html#aaeea55e9539671ec5d6b1660f25e57d3">entt::allocation_deleter::operator()</a></div><div class="ttdeci">constexpr void operator()(pointer ptr) noexcept(std::is_nothrow_destructible_v< typename allocator_type::value_type >)</div><div class="ttdoc">Destroys the pointed object and deallocates its memory.</div><div class="ttdef"><b>Definition</b> <a href="#l00092">memory.hpp:92</a></div></div>
|
||||
@@ -277,7 +285,8 @@ $(function() { codefold.init(0); });
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
|
||||
</small></address>
|
||||
</div><!-- doc-content -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user