87 lines
5.1 KiB
HTML
87 lines
5.1 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::file_status::file_status</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_file_status_file_status 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::file_status::</span>file_status</h1>
|
|
<div id="bodyContent">
|
|
<div id="contentSub"><span class="subpages">< <a href="cpp.html">cpp</a>‎ | <a href="cpp-filesystem.html">filesystem</a>‎ | <a href="cpp-filesystem-file_status.html">file status</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">file_status<span class="br0">(</span><span class="br0">)</span> <span class="kw1">noexcept</span> <span class="sy4">:</span> file_status<span class="br0">(</span><a href="cpp-filesystem-file_type.html"><span class="kw2209">std::<span class="me2">filesystem</span><span class="sy4">::</span><span class="me2">file_type</span><span class="sy4">::</span><span class="me2">none</span></span></a><span class="br0">)</span> <span class="br0">{</span> <span class="br0">}</span></span></div>
|
|
</td>
|
|
<td>(1)</td>
|
|
<td><span class="t-mark-rev t-since-cxx17">(C++17 起)</span></td>
|
|
</tr>
|
|
<tr class="t-dcl t-since-cxx17">
|
|
<td>
|
|
<div><span class="mw-geshi cpp source-cpp">file_status<span class="br0">(</span> <span class="kw4">const</span> file_status<span class="sy3">&</span> <span class="br0">)</span> <span class="kw1">noexcept</span> <span class="sy1">=</span> <span class="kw1">default</span><span class="sy4">;</span></span></div>
|
|
</td>
|
|
<td>(2)</td>
|
|
<td><span class="t-mark-rev t-since-cxx17">(C++17 起)</span></td>
|
|
</tr>
|
|
<tr class="t-dcl t-since-cxx17">
|
|
<td>
|
|
<div><span class="mw-geshi cpp source-cpp">file_status<span class="br0">(</span> file_status<span class="sy3">&&</span> <span class="br0">)</span> <span class="kw1">noexcept</span> <span class="sy1">=</span> <span class="kw1">default</span><span class="sy4">;</span></span></div>
|
|
</td>
|
|
<td>(3)</td>
|
|
<td><span class="t-mark-rev t-since-cxx17">(C++17 起)</span></td>
|
|
</tr>
|
|
<tr class="t-dcl t-since-cxx17">
|
|
<td>
|
|
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">explicit</span> file_status<span class="br0">(</span><br /></span>
|
|
<p> <a href="cpp-filesystem-file_type.html"><span class="kw2208">std::<span class="me2">filesystem</span><span class="sy4">::</span><span class="me2">file_type</span></span></a> type,<br /></p>
|
|
<a href="cpp-filesystem-perms.html"><span class="kw2219">std::<span class="me2">filesystem</span><span class="sy4">::</span><span class="me2">perms</span></span></a> permissions <span class="sy1">=</span> <a href="cpp-filesystem-perms.html"><span class="kw2238">std::<span class="me2">filesystem</span><span class="sy4">::</span><span class="me2">perms</span><span class="sy4">::</span><span class="me2">unknown</span></span></a><span class="br0">)</span> <span class="kw1">noexcept</span><span class="sy4">;</span></div>
|
|
</td>
|
|
<td>(4)</td>
|
|
<td><span class="t-mark-rev t-since-cxx17">(C++17 起)</span></td>
|
|
</tr>
|
|
<tr class="t-dcl-sep">
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>构造新的 <code>file_status</code> 对象。</p>
|
|
<div class="t-li1"><span class="t-li">1)</span> 默认构造函数以 <span class="t-lc"><a href="cpp-filesystem-file_type.html">std::filesystem::file_type::none</a></span> 调用 <span class="t-v">(4)</span> 。</div>
|
|
<div class="t-li1"><span class="t-li">2-3)</span> 默认化复制与移动构造函数。</div>
|
|
<div class="t-li1"><span class="t-li">4)</span> 以 <code>type</code> 为类型, <code>permissions</code> 为权限,初始化 file_status 对象。</div>
|
|
<h3><span class="mw-headline" id=".E5.8F.82.E6.95.B0">参数</span></h3>
|
|
<table class="t-par-begin">
|
|
<tr class="t-par">
|
|
<td>type</td>
|
|
<td>-</td>
|
|
<td>文件状态的类型</td>
|
|
</tr>
|
|
<tr class="t-par">
|
|
<td>permissions</td>
|
|
<td>-</td>
|
|
<td>文件状态的权限</td>
|
|
</tr>
|
|
</table>
|
|
<h3><span class="mw-headline" id=".E7.A4.BA.E4.BE.8B">示例</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="">本节未完成<br />
|
|
原因:暂无示例</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|