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

63 lines
3.8 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::destructible</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_concepts_destructible 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::</span>destructible</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-concepts.html">concepts</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-dsc-header">
<td>
<div>&#23450;&#20041;&#20110;&#22836;&#25991;&#20214; <code><a href="cpp-header-concepts.html">&lt;concepts&gt;</a></code></div>
</td>
<td></td>
<td></td>
</tr>
<tr class="t-dcl t-since-cxx20">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">template</span> <span class="sy1">&lt;</span> <span class="kw1">class</span> T <span class="sy1">&gt;</span><br />
concept destructible <span class="sy1">=</span> <a href="cpp-types-is_destructible.html"><span class="kw567">std::<span class="me2">is_nothrow_destructible_v</span></span></a><span class="sy1">&lt;</span>T<span class="sy1">&gt;</span><span class="sy4">;</span></span></div>
</td>
<td class="t-dcl-nopad"></td>
<td><span class="t-mark-rev t-since-cxx20">(C++20 &#36215;)</span></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>&#27010;&#24565; <code>destructible</code> &#25351;&#23450;&#33021;&#22312;&#23454;&#20363;&#29983;&#23384;&#26399;&#32467;&#23614;&#23433;&#20840;&#38144;&#27585;&#30340;&#25152;&#26377;&#31867;&#22411;&#65288;&#21253;&#21547;&#24341;&#29992;&#31867;&#22411;&#65289;&#30340;&#27010;&#24565;&#12290;</p>
<h3><span class="mw-headline" id=".E6.B3.A8.E8.A7.A3">&#27880;&#35299;</span></h3>
<p>&#19981;&#21516;&#20110; <a href="cpp-named_req-Destructible.html"><span style="font-style:italic">&#21487;&#26512;&#26500;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(Destructible)</span></a> &#20855;&#21517;&#35201;&#27714;&#65292; <code>std::destructible</code> &#35201;&#27714;&#26512;&#26500;&#20989;&#25968;&#20026; <span class="t-c"><span class="mw-geshi cpp source-cpp"><span class="kw1">noexcept</span><span class="br0">(</span><span class="kw2">true</span><span class="br0">)</span></span></span> &#65292;&#32780;&#19981;&#20165;&#26159;&#35843;&#29992;&#26102;&#19981;&#25243;&#20986;&#65292;&#24182;&#19988;&#20801;&#35768;&#24341;&#29992;&#31867;&#22411;&#21644;&#25968;&#32452;&#31867;&#22411;&#12290;</p>
<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-types-is_destructible.html"><span class="t-lines"><span>is_destructible</span><span>is_trivially_destructible</span><span>is_nothrow_destructible</span></span></a></div>
<div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx11">(C++11)</span></span><span><span class="t-mark-rev t-since-cxx11">(C++11)</span></span><span><span class="t-mark-rev t-since-cxx11">(C++11)</span></span></span></div>
</div>
</td>
<td>&#26816;&#26597;&#31867;&#22411;&#26159;&#21542;&#25317;&#26377;&#26410;&#34987;&#24323;&#32622;&#30340;&#26512;&#26500;&#20989;&#25968;<br />
<span class="t-mark">(&#31867;&#27169;&#26495;)</span></td>
</tr>
</table>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>