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

67 lines
3.6 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>operator&lt;&lt;(std::sub_match)</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_regex_sub_match_operator_ltlt skin-cppreference2 action-view cpp-navbar">
<div id="cpp-content-base">
<div id="content"><a id="top"></a>
<h1 id="firstHeading" class="firstHeading">operator&lt;&lt;<span style="font-size:0.7em; line-height:130%">(std::sub_match)</span></h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-regex.html">regex</a>&lrm; | <a href="cpp-regex-sub_match.html">sub match</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 t-since-cxx11">
<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> BidirIt <span class="sy1">&gt;</span><br /></span>
<p><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><br />
&nbsp; &nbsp; operator<span class="sy1">&lt;&lt;</span><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,<br /></p>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">const</span> sub_match<span class="sy1">&lt;</span>BidirIt<span class="sy1">&gt;</span><span class="sy3">&amp;</span> m <span class="br0">)</span><span class="sy4">;</span></div>
</td>
<td class="t-dcl-nopad"></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>
<p>&#20889;&#20837;&#21305;&#37197;&#23376;&#24207;&#21015; <code>m</code> &#30340;&#34920;&#31034;&#21040;&#36755;&#20986;&#27969; <code>os</code> &#12290;</p>
<p>&#31561;&#20215;&#20110; <span class="t-c"><span class="mw-geshi cpp source-cpp">os <span class="sy1">&lt;&lt;</span> m.<span class="me1">str</span><span class="br0">(</span><span class="br0">)</span></span></span> &#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;&#20889;&#20837;&#34920;&#31034;&#21040;&#30340;&#36755;&#20986;&#27969;</td>
</tr>
<tr class="t-par">
<td>m</td>
<td>-</td>
<td>&#35201;&#36755;&#20986;&#30340;&#33258;&#21305;&#37197;&#23545;&#35937;</td>
</tr>
</table>
<h3><span class="mw-headline" id=".E8.BF.94.E5.9B.9E.E5.80.BC">&#36820;&#22238;&#20540;</span></h3>
<p><code>os</code> &#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>