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) (до C++20) |
bool operator<( const directory_entry& rhs ) const noexcept; |
(3) | (с C++17) (до C++20) |
bool operator<=( const directory_entry& rhs ) const noexcept; |
(4) | (с C++17) (до C++20) |
bool operator>( const directory_entry& rhs ) const noexcept; |
(5) | (с C++17) (до C++20) |
bool operator>=( const directory_entry& rhs ) const noexcept; |
(6) | (с C++17) (до C++20) |
std::strong_ordering operator<=>( const directory_entry& rhs ) const noexcept; |
(7) | (с C++20) |
Сравнивает путь с записью каталога rhs.
|
Операторы |
(с C++20) |
Параметры
| rhs | - | directory_entry для сравнения |
Возвращаемое значение
1)
true если path() == rhs.path(), false в противном случае.
2)
true если path() != rhs.path(), 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 в противном случае.
7) Результат
path() <=> rhs.path().См. также
| возвращает путь, к которому относится запись (публичный член-функция) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/filesystem/directory_entry/operator_cmp