代码拉取完成,页面将自动刷新
<!-- 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< Allocators > 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< Allocators > 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<class... Allocators><br />
class foonathan::memory::segregator< Allocators ></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<Head, segregator<Tail...>></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<std::size_t I, class Segregator > </td></tr>
<tr class="memitem:ac7b4edbed60f78607c064d57a07cc2be"><td class="memTemplItemLeft" align="right" valign="top">using </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< I, Segregator >::type</td></tr>
<tr class="memdesc:ac7b4edbed60f78607c064d57a07cc2be"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a8b08f42be8a1e469d3a50831a1b4464e"><td class="memTemplParams" colspan="2">template<class Segregator > </td></tr>
<tr class="memitem:a8b08f42be8a1e469d3a50831a1b4464e"><td class="memTemplItemLeft" align="right" valign="top">using </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< Segregator >::type</td></tr>
<tr class="memdesc:a8b08f42be8a1e469d3a50831a1b4464e"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a2b04188f7ced9f0a29006efc9c7f648e"><td class="memTemplParams" colspan="2">template<typename... Args> </td></tr>
<tr class="memitem:a2b04188f7ced9f0a29006efc9c7f648e"><td class="memTemplItemLeft" align="right" valign="top">auto </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classfoonathan_1_1memory_1_1segregator.html#a2b04188f7ced9f0a29006efc9c7f648e">make_segregator</a> (Args &&... args) -> <a class="el" href="classfoonathan_1_1memory_1_1segregator.html">segregator</a>< typename std::decay< Args >::type... ></td></tr>
<tr class="separator:a2b04188f7ced9f0a29006efc9c7f648e"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Related Functions</h2>
<a id="ac7b4edbed60f78607c064d57a07cc2be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7b4edbed60f78607c064d57a07cc2be">◆ </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<I, Segregator>::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">◆ </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<Segregator>::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">◆ </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 &&... </td>
<td class="paramname"><em>args</em></td><td>)</td>
<td> -> <a class="el" href="classfoonathan_1_1memory_1_1segregator.html">segregator</a><typename std::decay<Args>::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">
<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  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。