命名空间
变体
操作

std::experimental::filesystem::path::has_...

来自 cppreference.cn
< cpp‎ | experimental‎ | fs‎ | path
 
 
实验性
技术规范
文件系统库 (filesystem TS)
库基础 (library fundamentals TS)
库基础 2 (library fundamentals TS v2)
库基础 3 (library fundamentals TS v3)
并行性扩展 (parallelism TS)
并行性扩展 2 (parallelism TS v2)
并发性扩展 (concurrency TS)
并发性扩展 2 (concurrency TS v2)
概念 (concepts TS)
范围 (ranges TS)
反射 (reflection TS)
数学特殊函数 (special functions TR)
实验性非 TS
模式匹配
线性代数
std::execution
契约
2D 图形
 
 
 
bool has_root_path() const;
(1) (filesystem TS)
bool has_root_name() const;
(2) (filesystem TS)
bool has_root_directory() const;
(3) (filesystem TS)
bool has_relative_path() const;
(4) (filesystem TS)
bool has_parent_path() const;
(5) (filesystem TS)
bool has_filename() const;
(6) (filesystem TS)
bool has_stem() const;
(7) (filesystem TS)
bool has_extension() const;
(8) (filesystem TS)

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

1) 检查 root_path() 是否为空。
2) 检查 root_name() 是否为空。
3) 检查 root_directory() 是否为空。
4) 检查 relative_path() 是否为空。
5) 检查 parent_path() 是否为空。
6) 检查 filename() 是否为空。
7) 检查 stem() 是否为空。
8) 检查 extension() 是否为空。

内容

[编辑] 参数

(无)

[编辑] 返回值

true 如果相应的路径不为空,则为 false,否则为假。

[编辑] 异常

可能抛出实现定义的异常。

[编辑] 参见

检查路径是否为空
(公共成员函数) [编辑]