std::filesystem::directory_entry::operator==,!=,<,<=,>,>=,<=>
From cppreference.com
 
 
 < cpp | filesystem | directory entry 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
std::filesystem::directory_entry 
 
 Member functions
 Modifiers
 Observers
directory_entry::operator==directory_entry::operator!=directory_entry::operator<directory_entry::operator>directory_entry::operator<=directory_entry::operator>=directory_entry::operator<=>
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
 Non-member functions
bool operator==( const directory_entry& rhs ) const noexcept;
 (1) 
 (since C++17) 
bool operator!=( const directory_entry& rhs ) const noexcept;
 (2) 
 (since C++17) (until C++20)
bool operator<( const directory_entry& rhs ) const noexcept;
 (3) 
 (since C++17) (until C++20)
bool operator<=( const directory_entry& rhs ) const noexcept;
 (4) 
 (since C++17) (until C++20)
bool operator>( const directory_entry& rhs ) const noexcept;
 (5) 
 (since C++17) (until C++20)
bool operator>=( const directory_entry& rhs ) const noexcept;
 (6) 
 (since C++17) (until C++20)
std::strong_ordering operator<=>( const directory_entry& rhs ) const noexcept;
 (7) 
 (since C++20) 
Compares the path with the directory entry rhs.
The <, <=, >, >=, and != operators are synthesized from operator<=> and operator== respectively.
[edit] Parameters
 rhs
 -
 directory_entry to compare
[edit] Return value
1) true if path() == rhs.path(), false otherwise.
2) true if path() != rhs.path(), false otherwise.
3) true if path() < rhs.path(), false otherwise.
4) true if path() <= rhs.path(), false otherwise.
5) true if path() > rhs.path(), false otherwise.
6) true if path() >= rhs.path(), false otherwise.
7) The result of path() <=> rhs.path().