std::experimental::filesystem:: status_known
From cppreference.net
<
cpp
|
experimental
|
fs
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Filesystem library
| Classes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| File types | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
定义于头文件
<experimental/filesystem>
|
||
|
bool
status_known
(
file_status s
)
;
|
(1) | (filesystem TS) |
检查给定文件状态是否已知,等价于 s. type ( ) ! = file_type :: none 。
目录 |
参数
| s | - | 要检查的文件状态 |
返回值
true 如果给定的文件状态是未知文件状态。
异常
noexcept
规范:
noexcept
注释
尽管名称如此,该函数检查的是
file_type::none
(表示发生错误)的文件状态,而非
file_type::unknown
(表示文件存在但无法确定其类型)。
参见
|
确定文件属性
确定文件属性,检查符号链接目标 (函数) |
|
|
此目录条目所指文件的缓存状态
此目录条目所指文件的缓存符号链接状态 (
std::experimental::filesystem::directory_entry
的公开成员函数)
|