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

std::filesystem::path::has_root_path

bool has_root_path() const;

(1)

(since C++17)

bool has_root_name() const;

(2)

(since C++17)

bool has_root_directory() const;

(3)

(since C++17)

bool has_relative_path() const;

(4)

(since C++17)

bool has_parent_path() const;

(5)

(since C++17)

bool has_filename() const;

(6)

(since C++17)

bool has_stem() const;

(7)

(since C++17)

bool has_extension() const;

(8)

(since C++17)

检查路径是否包含相应的路径元素。

1%29检查是否root_path()是空的。

2%29检查是否root_name()是空的。

3%29检查是否root_directory()是空的。

4%29检查是否relative_path()是空的。

5%29检查是否parent_path()是空的。

6%29检查是否filename()是空的。

7%29检查是否stem()是空的。

8%29检查是否extension()是空的。

参数

%280%29

返回值

true如果对应的路径组件不是空的,false否则。

例外

%280%29

另见

empty

checks if the path is empty (public member function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券