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) |
Checks whether the path contains the corresponding path element.
root_path()
is empty.root_name()
is empty.root_directory()
is empty.relative_path()
is empty.parent_path()
is empty.filename()
is empty.stem()
is empty.extension()
is empty.(none).
true
if the corresponding path component is not empty, false
otherwise.
May throw implementation-defined exceptions.
checks if the path is empty (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/filesystem/path/has_path