std::filesystem::directory_entry::operator==,!=,<,<=,>,>=,<=>
来自cppreference.com
< cpp | filesystem | directory
entry
文件系统库
类 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
函数 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
文件类型 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::filesystem::directory_entry
成员函数 | ||||
修改器 | ||||
观察器 | ||||
directory_entry::operator==directory_entry::operator!=directory_entry::operator<directory_entry::operator>directory_entry::operator<=directory_entry::operator>=directory_entry::operator<=>
(C++20
前)(C++20
前)(C++20
前)(C++20
前)(C++20
前)(C++20)
|
||||
非成员函数 | ||||
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) 若 path()
== rhs.path() 则为 true ,否则为 false 。
2) 若 path()
!=
rhs.path() 则为 true ,否则为 false 。
3) 若 path()
< rhs.path() 则为 true ,否则为 false 。
4) 若 path()
<= rhs.path() 则为 true ,否则为 false 。
5) 若 path()
> rhs.path() 则为 true ,否则为 false 。
6) 若 path()
>= rhs.path() 则为 true ,否则为 false 。
7) path()
<=> rhs.path() 的结果。
参阅
返回该目录项代表的路径 (公开成员函数) |