首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::filesystem::directory_entry::operators

bool operator==( const directory_entry& rhs ) const;

(1)

(since C++17)

bool operator!=( const directory_entry& rhs ) const;

(2)

(since C++17)

bool operator<( const directory_entry& rhs ) const;

(3)

(since C++17)

bool operator<=( const directory_entry& rhs ) const;

(4)

(since C++17)

bool operator>( const directory_entry& rhs ) const;

(5)

(since C++17)

bool operator>=( const directory_entry& rhs ) const;

(6)

(since C++17)

将路径与目录项进行比较。rhs...

参数

rhs

-

directory_entry to compare

返回值

1%29true如果path() == rhs.path(),,,false否则。

2%29true如果path() != rhs.path(),,,false否则。

3%29true如果path() < rhs.path(),,,false否则。

4%29true如果path() <= rhs.path(),,,false否则。

5%29true如果path() > rhs.path(),,,false否则。

6%29true如果path() >= rhs.path(),,,false否则。

例外

noexcept规格:

noexcept

另见

pathoperator const path&

returns the path the entry refers to (public member function)

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券