operator==(std::filesystem::file_status)

来自cppreference.com


 
 
 
 
friendbool operator==(const file_status& lhs, const file_status& rhs )noexcept;
(C++20 起)

检查二个 file_status 值是否相等,即是否其所表示的类型与权限分别相同。

此函数对常规的无限定有限定查找不可见,而只能在 std::filesystem::file_status 为实参的关联类时由实参依赖查找找到。

!= 运算符从 operator== 运算符合成

[编辑]参数

lhs, rhs - 要比较的 file_status

[编辑]返回值

lhs.type()== rhs.type()&& lhs.permissions()== rhs.permissions()

[编辑]参阅

获取或设置文件类型
(公开成员函数)[编辑]
获取或设置文件权限
(公开成员函数)[编辑]
close