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 == .

(since 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 если path ( ) <= rhs. path ( ) , false в противном случае.
5) true если path ( ) > rhs. path ( ) , false в противном случае.
6) true если path ( ) >= rhs. path ( ) , false в противном случае.
7) Результат path ( ) <=> rhs. path ( ) .

Смотрите также

возвращает путь, на который ссылается запись
(публичная функция-член)