Files
hustoj/web/cppreference-zh/chmhelp/cpp-memory-monotonic_buffer_resource-do_is_equal.html
2025-08-01 12:57:54 +08:00

71 lines
3.9 KiB
HTML

<!DOCTYPE html>
<html lang="zh" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh">
<head><meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>std::pmr::monotonic_buffer_resource::do_is_equal</title>
<link rel="stylesheet" href="ext.css" />
<link rel="stylesheet" href="site_modules.css" />
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-cpp_memory_monotonic_buffer_resource_do_is_equal skin-cppreference2 action-view cpp-navbar">
<div id="cpp-content-base">
<div id="content"><a id="top"></a>
<h1 id="firstHeading" class="firstHeading"><span style="font-size:0.7em; line-height:130%">std::pmr::monotonic_buffer_resource::</span>do_is_equal</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-memory.html">memory</a>&lrm; | <a href="cpp-memory-monotonic_buffer_resource.html">monotonic buffer resource</a></span></div>
<div id="mw-content-text" lang="zh" dir="ltr" class="mw-content-ltr" xml:lang="zh">
<table class="t-dcl-begin">
<tbody>
<tr class="t-dcl t-since-cxx17">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">virtual</span> <span class="kw4">bool</span> do_is_equal<span class="br0">(</span><span class="kw4">const</span> <a href="cpp-memory-memory_resource.html"><span class="kw708">std::<span class="me2">pmr</span><span class="sy4">::</span><span class="me2">memory_resource</span></span></a><span class="sy3">&amp;</span> other<span class="br0">)</span> <span class="kw4">const</span> <span class="kw1">noexcept</span><span class="sy4">;</span></span></div>
</td>
<td class="t-dcl-nopad"></td>
<td><span class="t-mark-rev t-since-cxx17">(C++17 &#36215;)</span></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>&#27604;&#36739; <code>*this</code> &#19982; <code>other</code> &#30340;&#30456;&#31561;&#24615;&mdash;&mdash;&#29992; <code>monotonic_buffer_resource</code> &#20998;&#37197;&#30340;&#20869;&#23384;&#21482;&#33021;&#29992;&#30456;&#21516;&#36164;&#28304;&#35299;&#20998;&#37197;&#12290;</p>
<h3><span class="mw-headline" id=".E8.BF.94.E5.9B.9E.E5.80.BC">&#36820;&#22238;&#20540;</span></h3>
<p><span class="t-c"><span class="mw-geshi cpp source-cpp">this <span class="sy1">==</span> <span class="sy3">&amp;</span>other</span></span></p>
<h3><span class="mw-headline" id=".E7.BC.BA.E9.99.B7.E6.8A.A5.E5.91.8A">&#32570;&#38519;&#25253;&#21578;</span></h3>
<p>&#19979;&#21015;&#26356;&#25913;&#34892;&#20026;&#30340;&#32570;&#38519;&#25253;&#21578;&#36861;&#28335;&#22320;&#24212;&#29992;&#20110;&#20197;&#21069;&#20986;&#29256;&#30340; C++ &#26631;&#20934;&#12290;</p>
<table class="dsctable" style="font-size:0.8em">
<tr>
<th>DR</th>
<th>&#24212;&#29992;&#20110;</th>
<th>&#20986;&#29256;&#26102;&#30340;&#34892;&#20026;</th>
<th>&#27491;&#30830;&#34892;&#20026;</th>
</tr>
<tr>
<td><a rel="nofollow" class="external text" href="https://cplusplus.github.io/LWG/issue3000">LWG 3000</a></td>
<td>C++17</td>
<td>&#36827;&#34892;&#20102;&#19981;&#24517;&#35201;&#30340; <code>dynamic_cast</code></td>
<td>&#24050;&#31227;&#38500;</td>
</tr>
</table>
<h3><span class="mw-headline" id=".E5.8F.82.E9.98.85">&#21442;&#38405;</span></h3>
<table class="t-dsc-begin">
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><a href="cpp-memory-memory_resource-do_is_equal.html"><span class="t-lines"><span>do_is_equal</span></span></a></div>
<div><span class="t-lines"><span><span class="t-cmark">[&#34394;]</span></span></span></div>
</div>
</td>
<td>&#19982;&#21478;&#19968; <code>memory_resource</code> &#27604;&#36739;&#30456;&#31561;<br />
<span class="t-mark">(<code>std::pmr::memory_resource</code> &#30340;&#34394;&#31169;&#26377;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
</table>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>