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) | 
|---|
 © cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

