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

72 lines
4.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::experimental::make_ostream_joiner</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_experimental_ostream_joiner_make_ostream_joiner 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::experimental::</span>make_ostream_joiner</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-experimental.html">experimental</a>&lrm; | <a href="cpp-experimental-ostream_joiner.html">ostream joiner</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="https://zh.cppreference.com/mwiki/index.php?title=cpp/header/experimental/iterator&amp;action=edit&amp;redlink=1" class="new" title="cpp/header/experimental/iterator&#65288;&#39029;&#38754;&#19981;&#23384;&#22312;&#65289;">&lt;experimental/iterator&gt;</a></code></div>
</td>
<td></td>
<td></td>
</tr>
<tr class="t-dcl t-since-libfund_ts_2">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">template</span> <span class="sy1">&lt;</span><span class="kw1">class</span> charT, <span class="kw1">class</span> traits, <span class="kw1">class</span> DelimT<span class="sy1">&gt;</span><br /></span>
<p><a href="cpp-experimental-ostream_joiner.html"><span class="kw2428">std::<span class="me2">experimental</span><span class="sy4">::</span><span class="me2">ostream_joiner</span></span></a><span class="sy1">&lt;</span><a href="cpp-types-decay.html"><span class="kw629">std::<span class="me2">decay_t</span></span></a><span class="sy1">&lt;</span>DelimT<span class="sy1">&gt;</span>, charT, traits<span class="sy1">&gt;</span><br /></p>
&nbsp; &nbsp; make_ostream_joiner<span class="br0">(</span><a href="cpp-io-basic_ostream.html"><span class="kw1715">std::<span class="me2">basic_ostream</span></span></a><span class="sy1">&lt;</span>charT, traits<span class="sy1">&gt;</span><span class="sy3">&amp;</span> os, DelimT<span class="sy3">&amp;&amp;</span> delimiter<span class="br0">)</span><span class="sy4">;</span></div>
</td>
<td class="t-dcl-nopad"></td>
<td><span class="t-mark-rev t-since-libfund-ts-2 t-mark-ts">(&#24211;&#22522;&#30784; TS v2)</span></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>&#21019;&#24314; <code>ostream_joiner</code> &#23545;&#35937;&#65292;&#20174;&#20989;&#25968;&#23454;&#21442;&#30340;&#31867;&#22411;&#25512;&#23548;&#27169;&#26495;&#23454;&#21442;&#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>os</td>
<td>-</td>
<td>&#35201;&#23558;&#36845;&#20195;&#22120;&#20851;&#32852;&#21040;&#30340; <code>basic_ostream</code> &#23545;&#35937;</td>
</tr>
<tr class="t-par">
<td>delimiter</td>
<td>-</td>
<td>&#20998;&#38548;&#31526;</td>
</tr>
</table>
<h3><span class="mw-headline" id=".E8.BF.94.E5.9B.9E.E5.80.BC">&#36820;&#22238;&#20540;</span></h3>
<p>&#22914;&#21516;&#29992; <span class="t-c"><span class="mw-geshi cpp source-cpp"><a href="cpp-experimental-ostream_joiner.html"><span class="kw2428">std::<span class="me2">experimental</span><span class="sy4">::</span><span class="me2">ostream_joiner</span></span></a><span class="sy1">&lt;</span><a href="cpp-types-decay.html"><span class="kw629">std::<span class="me2">decay_t</span></span></a><span class="sy1">&lt;</span>DelimT<span class="sy1">&gt;</span>, charT, traits<span class="sy1">&gt;</span><span class="br0">(</span>os, <a href="cpp-utility-forward.html"><span class="kw1117">std::<span class="me2">forward</span></span></a><span class="sy1">&lt;</span>DelimT<span class="sy1">&gt;</span><span class="br0">(</span>delimiter<span class="br0">)</span><span class="br0">)</span></span></span> &#21019;&#24314;&#30340; <code>ostream_joiner</code> &#23545;&#35937;&#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>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>