上传cppreference

This commit is contained in:
2025-08-01 12:57:54 +08:00
parent e29892f8cd
commit 196e706fe4
5485 changed files with 982007 additions and 3 deletions

View File

@@ -0,0 +1,98 @@
<!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_streambuf&lt;CharT,Traits&gt;::basic_streambuf</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_streambuf_basic_streambuf 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_streambuf&lt;CharT,Traits&gt;::</span>basic_streambuf</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_streambuf.html">basic streambuf</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>
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">protected</span><span class="sy4">:</span><br />
basic_streambuf<span class="br0">(</span><span class="br0">)</span><span class="sy4">;</span></span></div>
</td>
<td>(1)</td>
<td class="t-dcl-nopad"></td>
</tr>
<tr class="t-dcl t-since-cxx11">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">protected</span><span class="sy4">:</span><br />
basic_streambuf<span class="br0">(</span><span class="kw4">const</span> basic_streambuf<span class="sy3">&amp;</span> rhs<span class="br0">)</span><span class="sy4">;</span></span></div>
</td>
<td>(2)</td>
<td><span class="t-mark-rev t-since-cxx11">(C++11 &#36215;)</span></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<div class="t-li1"><span class="t-li">1)</span> &#26500;&#36896; <code>basic_streambuf</code> &#23545;&#35937;&#65292;&#21021;&#22987;&#21270;&#20845;&#20010;&#25104;&#21592;&#65288; <code>eback()</code> &#12289; <code>gptr()</code> &#12289; <code>egptr()</code> &#12289; <code>pbase()</code> &#12289; <code>pptr()</code> &#21644; <code>epptr()</code> &#65289;&#20026;&#31354;&#25351;&#38024;&#20540;&#65292; locale &#25104;&#21592;&#20026; <span class="t-c"><span class="mw-geshi cpp source-cpp"><a href="cpp-locale-locale.html"><span class="kw1894">std::<span class="me2">locale</span></span></a><span class="br0">(</span><span class="br0">)</span></span></span> &#65292;&#26500;&#36896;&#26102;&#30340;&#20840;&#23616; C++ &#26412;&#22320;&#29615;&#22659;&#30340;&#21103;&#26412;&#12290;</div>
<div class="t-li1"><span class="t-li">2)</span> &#20174; <code>rhs</code> &#22797;&#21046;&#26500;&#36896;&#65292;&#21021;&#22987;&#21270;&#20845;&#20010;&#25351;&#38024;&#21644; locale &#23545;&#35937;&#20026; <code>rhs</code> &#25152;&#20445;&#26377;&#20540;&#30340;&#21103;&#26412;&#12290;&#27880;&#24847;&#36825;&#26159;&#27973;&#22797;&#21046;&#65306;&#26032;&#26500;&#36896;&#30340; basic_streambuf &#30340;&#25351;&#38024;&#25351;&#21521;&#30340;&#23383;&#31526;&#25968;&#32452;&#19982; <code>rhs</code> &#30340;&#30456;&#21516;&#12290;</div>
<p>&#20004;&#20010;&#26500;&#36896;&#20989;&#25968;&#22343;&#20026;&#21463;&#20445;&#25252;&#65292;&#32780;&#19988;&#20165;&#20026;&#20855;&#20307;&#30340; streambuf &#31867;&#65292;&#22914; <span class="t-lc"><a href="cpp-io-basic_filebuf.html">std::basic_filebuf</a></span> &#12289; <span class="t-lc"><a href="cpp-io-basic_stringbuf.html">std::basic_stringbuf</a></span> &#25110; <span class="t-c"><span class="mw-geshi cpp source-cpp"><a href="cpp-io-strstreambuf.html"><span class="kw1752">std::<span class="me2">strstreambuf</span></span></a></span></span> &#35843;&#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>rhs</td>
<td>-</td>
<td>&#35201;&#22797;&#21046;&#30340; streambuf &#23545;&#35937;</td>
</tr>
</table>
<h3><span class="mw-headline" id=".E6.B3.A8.E8.A7.A3">&#27880;&#35299;</span></h3>
<p>C++11 &#21069;&#65292; <code>basic_streambuf</code> &#25110;&#20854;&#20219;&#20309;&#27966;&#29983;&#31867;&#26159;&#21542;&#20026;<a href="cpp-named_req-CopyConstructible.html"><span style="font-style:italic">&#21487;&#22797;&#21046;&#26500;&#36896;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(CopyConstructible)</span></a> &#26159;&#26410;&#25351;&#23450;&#30340;&#65288; <a rel="nofollow" class="external text" href="https://cplusplus.github.io/LWG/issue421">LWG &#38382;&#39064; 421</a> &#65289;&#65292;&#32780;&#19981;&#21516;&#30340; C++ &#24211;&#23454;&#29616;&#25552;&#20379;&#19981;&#21516;&#30340;&#36873;&#39033;&#12290;</p>
<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 t-dsc-member-nobold-div">
<div><a href="cpp-io-basic_filebuf-basic_filebuf.html"><span class="t-lines"><span>(&#26500;&#36896;&#20989;&#25968;)</span></span></a></div>
</div>
</td>
<td>&#26500;&#36896; basic_filebuf &#23545;&#35937;<br />
<span class="t-mark">(<code>std::basic_filebuf&lt;CharT,Traits&gt;</code> &#30340;&#20844;&#24320;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div t-dsc-member-nobold-div">
<div><a href="cpp-io-basic_stringbuf-basic_stringbuf.html"><span class="t-lines"><span>(&#26500;&#36896;&#20989;&#25968;)</span></span></a></div>
</div>
</td>
<td>&#26500;&#36896;&#19968;&#20010; basic_stringbuf &#23545;&#35937;<br />
<span class="t-mark">(<code>std::basic_stringbuf&lt;CharT,Traits,Allocator&gt;</code> &#30340;&#20844;&#24320;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div t-dsc-member-nobold-div">
<div><a href="cpp-io-strstreambuf-strstreambuf.html"><span class="t-lines"><span>(&#26500;&#36896;&#20989;&#25968;)</span></span></a></div>
</div>
</td>
<td>&#26500;&#36896; strstreambuf &#23545;&#35937;<br />
<span class="t-mark">(<code>std::strstreambuf</code> &#30340;&#20844;&#24320;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
</table>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>