Espacios de nombres
Variantes

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

De cppreference.com
 
 
 
 
<tbody> </tbody>
bool has_root_path() const;
(1) (desde C++17)
bool has_root_name() const;
(2) (desde C++17)
bool has_root_directory() const;
(3) (desde C++17)
bool has_relative_path() const;
(4) (desde C++17)
bool has_parent_path() const;
(5) (desde C++17)
bool has_filename() const;
(6) (desde C++17)
bool has_stem() const;
(7) (desde C++17)
bool has_extension() const;
(8) (desde C++17)

Verifica si la ruta de acceso contiene el elemento de ruta correspondiente.

1) Verifica si root_path() está vacío.
2) Verifica si root_name() está vacío.
3) Verifica si root_directory() está vacío.
4) Verifica si relative_path() está vacío.
5) Verifica si parent_path() está vacío.
6) Verifica si filename() está vacío.
7) Verifica si stem() está vacío.
8) Verifica si extension() está vacío.

Parámetros

(Ninguno)

Valor de retorno

true si el elemento de ruta correspondiente no está vacío, false de lo contrario.

Excepciones

Puede lanzar excepciones definidas por la implementación.

Ejemplo

Véase también

Comprueba si la ruta de acceso está vacía
(función miembro pública) [editar]