std::filesystem::directory_entry::operator==,!=,<,<=,>,>=,<=>
From cppreference.com
< cpp | filesystem | directory entry
| 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 | - | 比較対象のディレクトリ エントリ |
[編集] 戻り値
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() の結果。
[編集] 関連項目
| エントリが参照するパスを返します (public member function) |