std::filesystem::directory_entry::operators
文件系统::目录[医]条目::Operator==,%21=,<,<=,>,>=
bool operator==( const directory_entry& rhs ) const; | (1) | (since C++17) |
---|---|---|
bool operator!=( const directory_entry& rhs ) const; | (2) | (since C++17) |
bool operator<( const directory_entry& rhs ) const; | (3) | (since C++17) |
bool operator<=( const directory_entry& rhs ) const; | (4) | (since C++17) |
bool operator>( const directory_entry& rhs ) const; | (5) | (since C++17) |
bool operator>=( const directory_entry& rhs ) const; | (6) | (since C++17) |
将路径与目录项进行比较。rhs
...
参数
rhs | - | directory_entry to compare |
---|
返回值
1%29true
如果path() == rhs.path()
,,,false
否则。
2%29true
如果path() != rhs.path()
,,,false
否则。
3%29true如果path() < rhs.path(),,,false否则。
4%29true如果path() <= rhs.path(),,,false否则。
5%29true如果path() > rhs.path(),,,false否则。
6%29true如果path() >= rhs.path(),,,false否则。
例外
noexcept
规格:
noexcept
另见
pathoperator const path& | returns the path the entry refers to (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppremience.com/w/cpp/filesystem/目录[医]入口/操作员[医]CMP