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

bool operator==( const directory_entry& rhs ) const noexcept;
(1) (C++17 起)
bool operator!=( const directory_entry& rhs ) const noexcept;
(2) (C++17 起)
bool operator<( const directory_entry& rhs ) const noexcept;
(3) (C++17 起)
bool operator<=( const directory_entry& rhs ) const noexcept;
(4) (C++17 起)
bool operator>( const directory_entry& rhs ) const noexcept;
(5) (C++17 起)
bool operator>=( const directory_entry& rhs ) const noexcept;
(6) (C++17 起)

与 directory_entry 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

参阅

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

版本历史

  • (当前 | 先前 2017年5月1日 (一) 01:49Fruderica讨论 | 贡献 . . (1,484字节) (0). . (撤销)
  • 当前 | 先前) 2017年5月1日 (一) 01:48Fruderica讨论 | 贡献. . (1,484字节) (+1,484). . (以“{{cpp/filesystem/directory_entry/title|1=operator==,!=,<,<=,>,>=}} {{cpp/filesystem/directory_entry/navbar}} {{dcl begin}} {{dcl | num=1 | since=c++17 | 1= bool oper...”为内容创建页面)