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
From 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。
[編集] 例外
実装定義の例外をスローする場合があります。
[編集] 例
| このセクションは未完成です 理由: 例がありません |
[編集] 関連項目
| パスが空かどうかをチェックする (public member function) |