1 Star 0 Fork 0

mobangjack / memory

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
classfoonathan_1_1memory_1_1segregator.html 9.33 KB
一键复制 编辑 原始数据 按行查看 历史
Jonathan Müller 提交于 2020-05-05 17:04 . Update documentation
<!-- HTML header for doxygen 1.8.16-->
<!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.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>memory: segregator&lt; Allocators &gt; Class 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="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">memory
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="main-nav">
<ul class="sm sm-dox" id="main-menu">
<li><a href="index.html">Main Page</a></li>
<li><a href="md_doc_tutorial.html">Tutorial</a></li>
<li><a href="namespacefoonathan_1_1memory.html">Index</a></li>
<li><a href="files.html">Files</a></li>
</ul>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacefoonathan.html">foonathan</a></li><li class="navelem"><a class="el" href="namespacefoonathan_1_1memory.html">memory</a></li><li class="navelem"><a class="el" href="classfoonathan_1_1memory_1_1segregator.html">segregator</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#related">Related Functions</a> </div>
<div class="headertitle">
<div class="title">segregator&lt; Allocators &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__adapter.html">Adapters and Wrappers</a></div></div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class... Allocators&gt;<br />
class foonathan::memory::segregator&lt; Allocators &gt;</h3>
<p>Creates multiple nested <a class="el" href="classfoonathan_1_1memory_1_1binary__segregator.html">binary_segregator</a>. </p>
<p>If you pass one type, it must be a <a href="md_doc_concepts.html#concept_segregatable">Segregatable</a>. Then the result is a <a class="el" href="classfoonathan_1_1memory_1_1binary__segregator.html">binary_segregator</a> with that <code>Segregatable</code> and <a class="el" href="classfoonathan_1_1memory_1_1null__allocator.html">null_allocator</a> as fallback. If you pass two types, the first one must be a <code>Segregatable</code>, the second one a <a href="md_doc_concepts.html#concept_rawallocator">RawAllocator</a>. Then the result is a simple <a class="el" href="classfoonathan_1_1memory_1_1binary__segregator.html">binary_segregator</a> with those arguments. If you pass more than one, the last one must be a <code>RawAllocator</code> all others <code>Segregatable</code>, the result is <code>binary_segregator&lt;Head, segregator&lt;Tail...&gt;&gt;</code>. </p><dl class="section note"><dt>Note</dt><dd>It will result in an allocator that tries each <code>Segregatable</code> in the order specified using the last parameter as final fallback. </dd></dl>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
Related Functions</h2></td></tr>
<tr class="memitem:ac7b4edbed60f78607c064d57a07cc2be"><td class="memTemplParams" colspan="2">template&lt;std::size_t I, class Segregator &gt; </td></tr>
<tr class="memitem:ac7b4edbed60f78607c064d57a07cc2be"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classfoonathan_1_1memory_1_1segregator.html#ac7b4edbed60f78607c064d57a07cc2be">segregatable_allocator_type</a> = typename detail::segregatable_type&lt; I, Segregator &gt;::type</td></tr>
<tr class="memdesc:ac7b4edbed60f78607c064d57a07cc2be"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of the <code>I</code>th <a href="md_doc_concepts.html#concept_segregatable">Segregatable</a>. <a href="classfoonathan_1_1memory_1_1segregator.html#ac7b4edbed60f78607c064d57a07cc2be">More...</a><br /></td></tr>
<tr class="separator:ac7b4edbed60f78607c064d57a07cc2be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b08f42be8a1e469d3a50831a1b4464e"><td class="memTemplParams" colspan="2">template&lt;class Segregator &gt; </td></tr>
<tr class="memitem:a8b08f42be8a1e469d3a50831a1b4464e"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classfoonathan_1_1memory_1_1segregator.html#a8b08f42be8a1e469d3a50831a1b4464e">fallback_allocator_type</a> = typename detail::fallback_type&lt; Segregator &gt;::type</td></tr>
<tr class="memdesc:a8b08f42be8a1e469d3a50831a1b4464e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of the final fallback <a href="md_doc_concepts.html#concept_rawallocator">RawAllocator</a>. <a href="classfoonathan_1_1memory_1_1segregator.html#a8b08f42be8a1e469d3a50831a1b4464e">More...</a><br /></td></tr>
<tr class="separator:a8b08f42be8a1e469d3a50831a1b4464e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b04188f7ced9f0a29006efc9c7f648e"><td class="memTemplParams" colspan="2">template&lt;typename... Args&gt; </td></tr>
<tr class="memitem:a2b04188f7ced9f0a29006efc9c7f648e"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classfoonathan_1_1memory_1_1segregator.html#a2b04188f7ced9f0a29006efc9c7f648e">make_segregator</a> (Args &amp;&amp;... args) -&gt; <a class="el" href="classfoonathan_1_1memory_1_1segregator.html">segregator</a>&lt; typename std::decay&lt; Args &gt;::type... &gt;</td></tr>
<tr class="separator:a2b04188f7ced9f0a29006efc9c7f648e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Related Functions</h2>
<a id="ac7b4edbed60f78607c064d57a07cc2be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7b4edbed60f78607c064d57a07cc2be">&#9670;&nbsp;</a></span>segregatable_allocator_type</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classfoonathan_1_1memory_1_1segregator.html#ac7b4edbed60f78607c064d57a07cc2be">segregatable_allocator_type</a> = typename detail::segregatable_type&lt;I, Segregator&gt;::type</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The type of the <code>I</code>th <a href="md_doc_concepts.html#concept_segregatable">Segregatable</a>. </p>
</div>
</div>
<a id="a8b08f42be8a1e469d3a50831a1b4464e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b08f42be8a1e469d3a50831a1b4464e">&#9670;&nbsp;</a></span>fallback_allocator_type</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classfoonathan_1_1memory_1_1segregator.html#a8b08f42be8a1e469d3a50831a1b4464e">fallback_allocator_type</a> = typename detail::fallback_type&lt;Segregator&gt;::type</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The type of the final fallback <a href="md_doc_concepts.html#concept_rawallocator">RawAllocator</a>. </p>
</div>
</div>
<a id="a2b04188f7ced9f0a29006efc9c7f648e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b04188f7ced9f0a29006efc9c7f648e">&#9670;&nbsp;</a></span>make_segregator()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">auto make_segregator </td>
<td>(</td>
<td class="paramtype">Args &amp;&amp;...&#160;</td>
<td class="paramname"><em>args</em></td><td>)</td>
<td> -&gt; <a class="el" href="classfoonathan_1_1memory_1_1segregator.html">segregator</a>&lt;typename std::decay&lt;Args&gt;::type...&gt;
</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section user"><dt>Returns:</dt><dd>A <a class="el" href="classfoonathan_1_1memory_1_1segregator.html">segregator</a> created from the allocators <code>args</code>. </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.16-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
1
https://gitee.com/mobangjack/memory.git
git@gitee.com:mobangjack/memory.git
mobangjack
memory
memory
gh-pages

搜索帮助