std::filesystem::directory_entry:: operator==,!=,<,<=,>,>=,<=>
From cppreference.net
<
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 | - | 비교할 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
(
)
입니다.
참고 항목
|
엔트리가 참조하는 경로를 반환합니다
(public member function) |