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

98 lines
5.5 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::locale::facet</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_locale_locale_facet 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::locale::</span>facet</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-locale.html">locale</a>&lrm; | <a href="cpp-locale-locale.html">locale</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-locale.html">&lt;locale&gt;</a></code></div>
</td>
<td></td>
<td></td>
</tr>
<tr class="t-dcl">
<td class="t-dcl-nopad">
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">class</span> locale<span class="sy4">::</span><span class="me2">facet</span><span class="sy4">;</span></span></div>
</td>
<td class="t-dcl-nopad"></td>
<td class="t-dcl-nopad"></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><span class="t-lc"><strong class="selflink">std::locale::facet</strong></span> &#26159;&#24179;&#38754;&#30340;&#22522;&#31867;&#12290;&#23427;&#25552;&#20379;&#20849;&#29992;&#22522;&#31867;&#65292;&#20351;&#24471; locale &#33021;&#23384;&#20648;&#25351;&#21521;&#20854;&#25152;&#23454;&#35013;&#30340;&#24179;&#38754;&#30340;&#25351;&#38024;&#20110;&#21333;&#20010;&#26377;&#19979;&#26631;&#23481;&#22120;&#20013;&#65292;&#32780;&#19988;&#23427;&#25277;&#35937;&#23545;&#20110;&#24179;&#38754;&#24341;&#29992;&#35745;&#25968;&#30340;&#25903;&#25345;&#12290;&#28155;&#21152;&#24179;&#38754;&#21040; locale &#26102;&#65292; locale &#33258;&#22686;&#24179;&#38754;&#20013;&#30340;&#24341;&#29992;&#35745;&#25968;&#65288;&#36890;&#36807;&#23454;&#29616;&#29305;&#23450;&#30340;&#26426;&#21046;&#65289;&#12290;&#20961;&#22312;&#26512;&#26500;&#25110;&#20462;&#25913; locale &#26102;&#65292;&#23427;&#33258;&#20943;&#27599;&#20010;&#23427;&#19981;&#20877;&#23454;&#35013;&#30340;&#24179;&#38754;&#20013;&#30340;&#24341;&#29992;&#35745;&#25968;&#12290;&#24179;&#38754;&#30340;&#24341;&#29992;&#35745;&#25968;&#21464;&#20026;&#38646;&#26102;&#65292; locale &#36827;&#34892; <span class="t-c"><span class="mw-geshi cpp source-cpp">delete <span class="kw1">static_cast</span><span class="sy1">&lt;</span>std<span class="sy4">::</span><span class="me2">locale</span><span class="sy4">::</span><span class="me2">facet</span><span class="sy2">*</span><span class="sy1">&gt;</span><span class="br0">(</span>f<span class="br0">)</span></span></span> &#65292;&#20854;&#20013; <code>f</code> &#26159;&#25351;&#21521;&#24179;&#38754;&#30340;&#25351;&#38024;&#12290;</p>
<h3><span class="mw-headline" id=".E6.88.90.E5.91.98.E5.87.BD.E6.95.B0">&#25104;&#21592;&#20989;&#25968;</span></h3>
<table class="t-dsc-begin">
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div t-dsc-member-nobold-div">
<div><a href="cpp-locale-locale-facet-facet.html"><span class="t-lines"><span>(&#26500;&#36896;&#20989;&#25968;)</span></span></a></div>
</div>
</td>
<td>&#26500;&#36896;&#24102;&#25351;&#23450;&#24341;&#29992;&#35745;&#25968;&#30340;&#26032; facet<br />
<span class="t-mark">(&#21463;&#20445;&#25252;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><span class="t-lines"><span>operator=</span></span></div>
</div>
</td>
<td>&#22797;&#21046;&#36171;&#20540;&#36816;&#31639;&#31526;&#34987;&#21024;&#38500;<br />
<span class="t-mark">(&#21463;&#20445;&#25252;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div t-dsc-member-nobold-div">
<div><span class="t-lines"><span>(&#26512;&#26500;&#20989;&#25968;)</span></span></div>
<div><span class="t-lines"><span><span class="t-cmark">[&#34394;]</span></span></span></div>
</div>
</td>
<td>&#26512;&#26500;&#20989;&#25968;&#20026;&#21463;&#20445;&#25252;&#34394;&#20989;&#25968;<br />
<span class="t-mark">(&#34394;&#21463;&#20445;&#25252;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
</table>
<h3><span class="mw-headline" id=".E7.A4.BA.E4.BE.8B">&#31034;&#20363;</span></h3>
<table class="metadata plainlinks ambox mbox-small-left ambox-notice" style="">
<tr>
<td class="mbox-empty-cell"></td>
<td class="mbox-text" style="">&#26412;&#33410;&#26410;&#23436;&#25104;<br />
&#21407;&#22240;&#65306;&#26242;&#26080;&#31034;&#20363;</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-locale-locale-id.html"><span class="t-lines"><span>id</span></span></a></div>
</div>
</td>
<td>&#24179;&#38754;&#32034;&#24341;&#31867;&#22411;&#65306;&#27599;&#20010;&#24179;&#38754;&#31867;&#24517;&#39035;&#22768;&#26126;&#25110;&#32487;&#25215;&#27492;&#31867;&#22411;&#30340;&#20844;&#24320;&#38745;&#24577;&#25104;&#21592;<br />
<span class="t-mark">(&#31867;)</span></td>
</tr>
</table>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>