名稱空間
變體
操作

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

來自 cppreference.com
< cpp‎ | experimental‎ | fs‎ | path
 
 
實驗性
技術規範
檔案系統庫 (檔案系統 TS)
庫基礎 (庫基礎 TS)
庫基礎 2 (庫基礎 TS v2)
庫基礎 3 (庫基礎 TS v3)
並行性擴充套件 (並行性 TS)
並行性擴充套件 2 (並行性 TS v2)
併發性擴充套件 (併發性 TS)
併發擴充套件 2 (併發 TS v2)
概念 (概念 TS)
範圍 (範圍 TS)
反射 (反射 TS)
數學特殊函式 (特殊函式 TR)
實驗性非 TS
模式匹配
線性代數
std::execution
契約
2D 圖形
 
 
 
bool has_root_path() const;
(1) (檔案系統 TS)
bool has_root_name() const;
(2) (檔案系統 TS)
bool has_root_directory() const;
(3) (檔案系統 TS)
bool has_relative_path() const;
(4) (檔案系統 TS)
bool has_parent_path() const;
(5) (檔案系統 TS)
bool has_filename() const;
(6) (檔案系統 TS)
bool has_stem() const;
(7) (檔案系統 TS)
bool has_extension() const;
(8) (檔案系統 TS)

檢查路徑是否包含對應的路徑元素。

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

目錄

[編輯] 引數

(無)

[編輯] 返回值

如果對應的路徑不為空,則為 true,否則為 false

[編輯] 異常

可能丟擲實現定義的異常。

[編輯] 參閱

檢查路徑是否為空
(公共成員函式) [編輯]