Namespaces
Variants

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

From cppreference.net
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 とパスを比較します。

< <= > >= 、および != 演算子は、それぞれ 合成 され、 operator <=> および operator == から生成されます。

(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 if path ( ) <= rhs. path ( ) , false otherwise.
5) true path ( ) > rhs. path ( ) の場合、 false それ以外の場合。
6) true path path ( ) >= rhs. path ( ) の場合、 false それ以外の場合。
7) path ( ) <=> rhs. path ( ) の結果。

関連項目

エントリが参照するパスを返す
(公開メンバ関数)