名前空間
変種
操作

std::filesystem::path::has_root_path, std::filesystem::path::has_root_name, std::filesystem::path::has_root_directory, std::filesystem::path::has_relative_path, std::filesystem::path::has_parent_path, std::filesystem::path::has_filename, std::filesystem::path::has_stem, std::filesystem::path::has_extension

提供: cppreference.com
< cpp‎ | filesystem‎ | path
 
 
 
 
bool has_root_path() const;
(1) (C++17以上)
bool has_root_name() const;
(2) (C++17以上)
bool has_root_directory() const;
(3) (C++17以上)
bool has_relative_path() const;
(4) (C++17以上)
bool has_parent_path() const;
(5) (C++17以上)
bool has_filename() const;
(6) (C++17以上)
bool has_stem() const;
(7) (C++17以上)
bool has_extension() const;
(8) (C++17以上)

パスに対応するパス要素が含まれているかどうか調べます。

1) root_path() が空かどうか調べます。
2) root_name() が空かどうか調べます。
3) root_directory() が空かどうか調べます。
4) relative_path() が空かどうか調べます。
5) parent_path() が空かどうか調べます。
6) filename() が空かどうか調べます。
7) stem() が空かどうか調べます。
8) extension() が空かどうか調べます。

目次

[編集] 引数

(なし)

[編集] 戻り値

対応するパス部分が空でなければ true、そうでなければ false

[編集] 例外

(なし)

[編集] 関連項目

パスが空かどうか調べます
(パブリックメンバ関数) [edit]