std::filesystem::directory_entry::operator==,!=,<,<=,>,>=,<=>
Von cppreference.com
< cpp | filesystem | directory entry
| bool operator==( const directory_entry& rhs ) const noexcept; |
(1) | (seit C++17) |
| bool operator!=( const directory_entry& rhs ) const noexcept; |
(2) | (seit C++17) (bis C++20) |
| bool operator<( const directory_entry& rhs ) const noexcept; |
(3) | (seit C++17) (bis C++20) |
| bool operator<=( const directory_entry& rhs ) const noexcept; |
(4) | (seit C++17) (bis C++20) |
| bool operator>( const directory_entry& rhs ) const noexcept; |
(5) | (seit C++17) (bis C++20) |
| bool operator>=( const directory_entry& rhs ) const noexcept; |
(6) | (seit C++17) (bis C++20) |
| std::strong_ordering operator<=>( const directory_entry& rhs ) const noexcept; |
(7) | (seit C++20) |
Vergleicht den Pfad mit dem Verzeichniseintrag rhs.
|
Die Operatoren |
(seit C++20) |
[edit] Parameter
| rhs | - | zu vergleichender Verzeichniseintrag |
[edit] Rückgabewert
1) true wenn path() == rhs.path(), false andernfalls.
2) true wenn path() != rhs.path(), false andernfalls.
3) true wenn path() < rhs.path(), false andernfalls.
4) true wenn path() <= rhs.path(), false andernfalls.
5) true wenn path() > rhs.path(), false andernfalls.
6) true wenn path() >= rhs.path(), false andernfalls.
7) Das Ergebnis von path() <=> rhs.path().
[edit] Siehe auch
| gibt den Pfad zurück, auf den der Eintrag verweist (öffentliche Memberfunktion) |