Namespaces
Variants

std::experimental::filesystem::directory_entry:: operator==,!=,<,<=,>,>=

From zh.cppreference.net
bool operator == ( const directory_entry & rhs ) const ;
(1) (文件系统 TS)
bool operator ! = ( const directory_entry & rhs ) const ;
(2) (文件系统 TS)
bool operator < ( const directory_entry & rhs ) const ;
(3) (文件系统 TS)
bool operator <= ( const directory_entry & rhs ) const ;
(4) (文件系统 TS)
bool operator > ( const directory_entry & rhs ) const ;
(5) (文件系统 TS)
bool operator >= ( const directory_entry & rhs ) const ;
(6) (文件系统 TS)

将路径与目录条目 rhs 进行比较。

目录

参数

rhs - 要比较的 directory_entry

返回值

1) true 当 path ( ) == rhs. path ( ) 时成立, false 其他情况。
2) 若 path ( ) ! = rhs. path ( ) 则返回 true ,否则返回 false 。
3) true 若 path ( ) < rhs. path ( ) ,否则为 false 。
4) true 当 path ( ) <= rhs. path ( ) 时成立,否则为 false 。
5) true 如果 path ( ) > rhs. path ( ) ,否则为 false 。
6) true 若 path ( ) >= rhs. path ( ) ,否则为 false 。

异常

noexcept 规范:
noexcept

参见

返回该条目所引用的路径
(公开成员函数)