Namespaces
Variants

std::filesystem::directory_entry:: operator==,!=,<,<=,>,>=,<=>

From cppreference.net
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 < , <= , > , >= und != werden synthetisiert aus operator <=> beziehungsweise operator == .

(seit C++20)

Parameter

rhs - zu vergleichender directory_entry

Rückgabewert

1) true wenn path ( ) == rhs. path ( ) , false sonst.
2) true falls path ( ) ! = rhs. path ( ) , false andernfalls.
3) true wenn path ( ) < rhs. path ( ) , false sonst.
4) true wenn path ( ) <= rhs. path ( ) , false sonst.
5) true wenn path ( ) > rhs. path ( ) , false sonst.
6) true wenn path ( ) >= rhs. path ( ) , false andernfalls.
7) Das Ergebnis von path ( ) <=> rhs. path ( ) .

Siehe auch

gibt den Pfad zurück, auf den der Eintrag verweist
(öffentliche Elementfunktion)