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

67 lines
4.3 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::filesystem::directory_iterator::operator*, std::filesystem::directory_iterator::operator-&gt;</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_filesystem_directory_iterator_operator 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::filesystem::directory_iterator::</span>operator*, <span style="font-size:0.7em; line-height:130%">std::filesystem::directory_iterator::</span>operator-&gt;</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-filesystem.html">filesystem</a>&lrm; | <a href="cpp-filesystem-directory_iterator.html">directory iterator</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-cxx17">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw4">const</span> <a href="cpp-filesystem-directory_entry.html"><span class="kw2203">std::<span class="me2">filesystem</span><span class="sy4">::</span><span class="me2">directory_entry</span></span></a><span class="sy3">&amp;</span> operator<span class="sy2">*</span><span class="br0">(</span><span class="br0">)</span> <span class="kw4">const</span><span class="sy4">;</span></span></div>
</td>
<td>(1)</td>
<td><span class="t-mark-rev t-since-cxx17">(C++17 &#36215;)</span></td>
</tr>
<tr class="t-dcl t-since-cxx17">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw4">const</span> <a href="cpp-filesystem-directory_entry.html"><span class="kw2203">std::<span class="me2">filesystem</span><span class="sy4">::</span><span class="me2">directory_entry</span></span></a><span class="sy2">*</span> operator<span class="sy2">-</span><span class="sy1">&gt;</span><span class="br0">(</span><span class="br0">)</span> <span class="kw4">const</span><span class="sy4">;</span></span></div>
</td>
<td>(2)</td>
<td><span class="t-mark-rev t-since-cxx17">(C++17 &#36215;)</span></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>&#35775;&#38382;&#36845;&#20195;&#22120;&#25152;&#25351;&#30340; <a href="cpp-filesystem-directory_entry.html"><tt>directory_entry</tt></a> &#12290;</p>
<p>&#23614;&#36845;&#20195;&#22120;&#19978;&#30340; <code>operator*</code> &#25110; <code>operator-&gt;</code> &#20135;&#29983;&#26410;&#23450;&#20041;&#34892;&#20026;&#12290;</p>
<h3><span class="mw-headline" id=".E5.8F.82.E6.95.B0">&#21442;&#25968;</span></h3>
<p>&#65288;&#26080;&#65289;</p>
<h3><span class="mw-headline" id=".E8.BF.94.E5.9B.9E.E5.80.BC">&#36820;&#22238;&#20540;</span></h3>
<div class="t-li1"><span class="t-li">1)</span> &#27492;&#36845;&#20195;&#22120;&#25152;&#25351;&#20195;&#30340; <a href="cpp-filesystem-directory_entry.html"><tt>directory_entry</tt></a> &#30340;&#20540;&#12290;</div>
<div class="t-li1"><span class="t-li">2)</span> &#25351;&#21521;&#27492;&#36845;&#20195;&#22120;&#25152;&#25351;&#20195;&#30340; <a href="cpp-filesystem-directory_entry.html"><tt>directory_entry</tt></a> &#30340;&#25351;&#38024;&#12290;</div>
<h3><span class="mw-headline" id=".E5.BC.82.E5.B8.B8">&#24322;&#24120;</span></h3>
<p>&#21487;&#33021;&#25243;&#20986;&#23454;&#29616;&#23450;&#20041;&#30340;&#24322;&#24120;&#12290;</p>
<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-filesystem-recursive_directory_iterator-operator*.html"><span class="t-lines"><span>operator*</span><span>operator-&gt;</span></span></a></div>
</div>
</td>
<td>&#35775;&#38382;&#25152;&#25351;&#30340;&#30446;&#24405;&#26465;&#30446;<br />
<span class="t-mark">(<code>std::filesystem::recursive_directory_iterator</code> &#30340;&#20844;&#24320;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
</table>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>