222 lines
12 KiB
HTML
222 lines
12 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">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>EnTT: entt::allocation_deleter< Allocator > Struct Template Reference</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>
|
|
<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.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 style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">EnTT
|
|
 <span id="projectnumber">3.10.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- 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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespaceentt.html">entt</a></li><li class="navelem"><a class="el" href="structentt_1_1allocation__deleter.html">allocation_deleter</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-types">Public Types</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="structentt_1_1allocation__deleter-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">entt::allocation_deleter< Allocator > Struct Template Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Deleter for allocator-aware unique pointers (waiting for C++20).
|
|
<a href="structentt_1_1allocation__deleter.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="memory_8hpp_source.html">memory.hpp</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for entt::allocation_deleter< Allocator >:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="structentt_1_1allocation__deleter__inherit__graph.png" border="0" usemap="#aentt_1_1allocation__deleter_3_01Allocator_01_4_inherit__map" alt="Inheritance graph"/></div>
|
|
<map name="aentt_1_1allocation__deleter_3_01Allocator_01_4_inherit__map" id="aentt_1_1allocation__deleter_3_01Allocator_01_4_inherit__map">
|
|
<area shape="rect" title="Deleter for allocator-aware unique pointers (waiting for C++20)." alt="" coords="5,80,159,121"/>
|
|
<area shape="rect" title=" " alt="" coords="45,5,119,32"/>
|
|
</map>
|
|
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
|
<div class="dynheader">
|
|
Collaboration diagram for entt::allocation_deleter< Allocator >:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="structentt_1_1allocation__deleter__coll__graph.png" border="0" usemap="#aentt_1_1allocation__deleter_3_01Allocator_01_4_coll__map" alt="Collaboration graph"/></div>
|
|
<map name="aentt_1_1allocation__deleter_3_01Allocator_01_4_coll__map" id="aentt_1_1allocation__deleter_3_01Allocator_01_4_coll__map">
|
|
<area shape="rect" title="Deleter for allocator-aware unique pointers (waiting for C++20)." alt="" coords="5,80,159,121"/>
|
|
<area shape="rect" title=" " alt="" coords="45,5,119,32"/>
|
|
</map>
|
|
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
|
Public Types</h2></td></tr>
|
|
<tr class="memitem:abce9d9de78a31b79e98745f4e029c863"><td class="memItemLeft" align="right" valign="top"><a id="abce9d9de78a31b79e98745f4e029c863"></a>
|
|
using </td><td class="memItemRight" valign="bottom"><a class="el" href="structentt_1_1allocation__deleter.html#abce9d9de78a31b79e98745f4e029c863">allocator_type</a> = Allocator</td></tr>
|
|
<tr class="memdesc:abce9d9de78a31b79e98745f4e029c863"><td class="mdescLeft"> </td><td class="mdescRight">Allocator type. <br /></td></tr>
|
|
<tr class="separator:abce9d9de78a31b79e98745f4e029c863"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a37186f63eb16409b00b0261041b68c5c"><td class="memItemLeft" align="right" valign="top"><a id="a37186f63eb16409b00b0261041b68c5c"></a>
|
|
using </td><td class="memItemRight" valign="bottom"><a class="el" href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c">pointer</a> = typename std::allocator_traits< Allocator >::<a class="el" href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c">pointer</a></td></tr>
|
|
<tr class="memdesc:a37186f63eb16409b00b0261041b68c5c"><td class="mdescLeft"> </td><td class="mdescRight">Pointer type. <br /></td></tr>
|
|
<tr class="separator:a37186f63eb16409b00b0261041b68c5c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a1e40e8f850d327ed13dbb3eab6886b7d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structentt_1_1allocation__deleter.html#a1e40e8f850d327ed13dbb3eab6886b7d">allocation_deleter</a> (const <a class="el" href="structentt_1_1allocation__deleter.html#abce9d9de78a31b79e98745f4e029c863">allocator_type</a> &alloc)</td></tr>
|
|
<tr class="memdesc:a1e40e8f850d327ed13dbb3eab6886b7d"><td class="mdescLeft"> </td><td class="mdescRight">Inherited constructors. <a href="structentt_1_1allocation__deleter.html#a1e40e8f850d327ed13dbb3eab6886b7d">More...</a><br /></td></tr>
|
|
<tr class="separator:a1e40e8f850d327ed13dbb3eab6886b7d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acf2b15c272b52afdcbe6897713b0a4a4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structentt_1_1allocation__deleter.html#acf2b15c272b52afdcbe6897713b0a4a4">operator()</a> (<a class="el" href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c">pointer</a> ptr)</td></tr>
|
|
<tr class="memdesc:acf2b15c272b52afdcbe6897713b0a4a4"><td class="mdescLeft"> </td><td class="mdescRight">Destroys the pointed object and deallocates its memory. <a href="structentt_1_1allocation__deleter.html#acf2b15c272b52afdcbe6897713b0a4a4">More...</a><br /></td></tr>
|
|
<tr class="separator:acf2b15c272b52afdcbe6897713b0a4a4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><h3>template<typename Allocator><br />
|
|
struct entt::allocation_deleter< Allocator ></h3>
|
|
|
|
<p>Deleter for allocator-aware unique pointers (waiting for C++20). </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">Args</td><td>Types of arguments to use to construct the object. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="memory_8hpp_source.html#l00112">112</a> of file <a class="el" href="memory_8hpp_source.html">memory.hpp</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="a1e40e8f850d327ed13dbb3eab6886b7d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1e40e8f850d327ed13dbb3eab6886b7d">◆ </a></span>allocation_deleter()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Allocator > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="structentt_1_1allocation__deleter.html">entt::allocation_deleter</a>< Allocator >::<a class="el" href="structentt_1_1allocation__deleter.html">allocation_deleter</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="structentt_1_1allocation__deleter.html#abce9d9de78a31b79e98745f4e029c863">allocator_type</a> & </td>
|
|
<td class="paramname"><em>alloc</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Inherited constructors. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">alloc</td><td>The allocator to use. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="memory_8hpp_source.html#l00122">122</a> of file <a class="el" href="memory_8hpp_source.html">memory.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="acf2b15c272b52afdcbe6897713b0a4a4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#acf2b15c272b52afdcbe6897713b0a4a4">◆ </a></span>operator()()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename Allocator > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="structentt_1_1allocation__deleter.html">entt::allocation_deleter</a>< Allocator >::operator() </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="structentt_1_1allocation__deleter.html#a37186f63eb16409b00b0261041b68c5c">pointer</a> </td>
|
|
<td class="paramname"><em>ptr</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Destroys the pointed object and deallocates its memory. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">ptr</td><td>A valid pointer to an object of the given type. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="memory_8hpp_source.html#l00129">129</a> of file <a class="el" href="memory_8hpp_source.html">memory.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this struct was generated from the following file:<ul>
|
|
<li>src/entt/core/<a class="el" href="memory_8hpp_source.html">memory.hpp</a></li>
|
|
</ul>
|
|
</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.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|