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

来自cppreference.com
 
 
 
 
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) 若 path() == rhs.path() 则为 true,否则为 false。
2) 若 path() != rhs.path() 则为 true,否则为 false。
3) 若 path() < rhs.path() 则为 true,否则为 false。
4) 若 path() <= rhs.path() 则为 true,否则为 false。
5) 若 path() > rhs.path() 则为 true,否则为 false。
6) 若 path() >= rhs.path() 则为 true,否则为 false。

异常

noexcept 规定:  
noexcept
  

参阅

返回目录项所指代的路径
(公开成员函数)