Namespaces
Variants

std::filesystem::file_status:: file_status

From cppreference.net
file_status ( ) noexcept : file_status ( std:: filesystem :: file_type :: none ) { }
(1) (C++17 起)
file_status ( const file_status & ) noexcept = default ;
(2) (C++17 起)
file_status ( file_status && ) noexcept = default ;
(3) (C++17 起)
(4) (C++17 起)

构造一个新的 file_status 对象。

1) 默认构造函数,调用 (4) 并传入 std::filesystem::file_type::none
2,3) 复制与移动构造函数被设为默认。
4) 使用 type 作为类型和 permissions 作为权限来初始化文件状态对象。

参数

type - 文件状态类型
permissions - 文件状态权限

示例