std::filesystem::directory_entry:: operator==,!=,<,<=,>,>=,<=>
From cppreference.net
<
cpp
|
filesystem
|
directory entry
|
bool
operator
==
(
const
directory_entry
&
rhs
)
const
noexcept
;
|
(1) | (depuis C++17) |
|
bool
operator
!
=
(
const
directory_entry
&
rhs
)
const
noexcept
;
|
(2) |
(depuis C++17)
(jusqu'à C++20) |
|
bool
operator
<
(
const
directory_entry
&
rhs
)
const
noexcept
;
|
(3) |
(depuis C++17)
(jusqu'à C++20) |
|
bool
operator
<=
(
const
directory_entry
&
rhs
)
const
noexcept
;
|
(4) |
(depuis C++17)
(jusqu'à C++20) |
|
bool
operator
>
(
const
directory_entry
&
rhs
)
const
noexcept
;
|
(5) |
(depuis C++17)
(jusqu'à C++20) |
|
bool
operator
>=
(
const
directory_entry
&
rhs
)
const
noexcept
;
|
(6) |
(depuis C++17)
(jusqu'à C++20) |
|
std::
strong_ordering
operator
<=>
(
const
directory_entry
&
rhs
)
const
noexcept
;
|
(7) | (depuis C++20) |
Compare le chemin avec l'entrée de répertoire rhs .
|
Les opérateurs
|
(depuis C++20) |
Paramètres
| rhs | - | directory_entry à comparer |
Valeur de retour
1)
true
si
path
(
)
==
rhs.
path
(
)
,
false
sinon.
2)
true
si
path
(
)
!
=
rhs.
path
(
)
,
false
sinon.
3)
true
si
path
(
)
<
rhs.
path
(
)
,
false
sinon.
4)
true
si
path
(
)
<=
rhs.
path
(
)
,
false
sinon.
5)
true
si
path
(
)
>
rhs.
path
(
)
,
false
sinon.
6)
true
si
path
(
)
>=
rhs.
path
(
)
,
false
sinon.
7)
Le résultat de
path
(
)
<=>
rhs.
path
(
)
.
Voir aussi
|
renvoie le chemin auquel l'entrée fait référence
(fonction membre publique) |