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

90 lines
4.4 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::basic_syncbuf&lt;CharT,Traits,Allocator&gt;::set_emit_on_sync</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_io_basic_syncbuf_set_emit_on_sync 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::basic_syncbuf&lt;CharT,Traits,Allocator&gt;::</span>set_emit_on_sync</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-io.html">io</a>&lrm; | <a href="cpp-io-basic_syncbuf.html">basic syncbuf</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">
<td class="t-dcl-nopad">
<div><span class="mw-geshi cpp source-cpp"><span class="kw4">void</span> set_emit_on_sync<span class="br0">(</span> <span class="kw4">bool</span> b <span class="br0">)</span> <span class="kw1">noexcept</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>&#26356;&#25913;&#24403;&#21069;&#30340;&#21516;&#27493;&#26102;&#21457;&#23556;&#65288; emit-on-sync &#65289;&#31574;&#30053;&#12290;</p>
<p>&#20540; <span class="t-c"><span class="mw-geshi cpp source-cpp"><span class="kw2">false</span></span></span> &#65288;&#40664;&#35748;&#20540;&#65289;&#25351;&#31034;&#20219;&#20309;&#20914;&#20837;&#37117;&#23558;&#34987;&#24310;&#36831;&#21040;&#23545; emit &#30340;&#35843;&#29992;&#12290;</p>
<p>&#20540; <span class="t-c"><span class="mw-geshi cpp source-cpp"><span class="kw2">true</span></span></span> &#20351;&#20914;&#20837;&#31435;&#21363;&#24212;&#29992;&#12290;</p>
<h3><span class="mw-headline" id=".E5.8F.82.E6.95.B0">&#21442;&#25968;</span></h3>
<table class="t-par-begin">
<tr class="t-par">
<td>b</td>
<td>-</td>
<td>&#21516;&#27493;&#26102;&#21457;&#29983;&#31574;&#30053;&#30340;&#26032;&#20540;</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-io-basic_streambuf-pubsync.html"><span class="t-lines"><span>sync</span></span></a></div>
<div><span class="t-lines"><span><span class="t-cmark">[&#34394;]</span></span></span></div>
</div>
</td>
<td>&#23558;&#32531;&#20914;&#19982;&#20851;&#32852;&#30340;&#23383;&#31526;&#24207;&#21015;&#21516;&#27493;<br />
<span class="t-mark">(<code>std::basic_streambuf&lt;CharT,Traits&gt;</code> &#30340;&#34394;&#21463;&#20445;&#25252;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><a href="cpp-io-basic_syncbuf-emit.html"><span class="t-lines"><span>emit</span></span></a></div>
</div>
</td>
<td>&#21407;&#23376;&#22320;&#20256;&#36755;&#25972;&#20010;&#20869;&#37096;&#32531;&#20914;&#21306;&#32473;&#34987;&#21253;&#35013; streambuf<br />
<span class="t-mark">(&#20844;&#24320;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><a href="cpp-io-manip-emit_on_flush.html"><span class="t-lines"><span>emit_on_flush</span><span>noemit_on_flush</span></span></a></div>
<div><span class="t-lines"><span><span class="t-mark-rev t-since-cxx20">(C++20)</span></span></span></div>
</div>
</td>
<td>&#25511;&#21046;&#27969;&#30340; <a href="cpp-io-basic_syncbuf.html"><tt>basic_syncbuf</tt></a> &#26159;&#21542;&#22312;&#20914;&#20837;&#26102;&#21457;&#23556;<br />
<span class="t-mark">(&#20989;&#25968;&#27169;&#26495;)</span></td>
</tr>
</table>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>