std::experimental::filesystem::directory_entry::operator==,!=,<,<=,>,>=
来自 cppreference.cn
< cpp | experimental | fs | directory_entry
bool operator==( const directory_entry& rhs ) const; |
(1) | (filesystem TS) |
bool operator!=( const directory_entry& rhs ) const; |
(2) | (filesystem TS) |
bool operator<( const directory_entry& rhs ) const; |
(3) | (filesystem TS) |
bool operator<=( const directory_entry& rhs ) const; |
(4) | (filesystem TS) |
bool operator>( const directory_entry& rhs ) const; |
(5) | (filesystem TS) |
bool operator>=( const directory_entry& rhs ) const; |
(6) | (filesystem 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
[编辑] 参阅
返回该条目引用的路径 (public member function) |