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 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
std::filesystem::path 
 
 
 
 
 
 
 
 
 
 
path::has_root_pathpath::has_root_namepath::has_root_directorypath::has_relative_pathpath::has_parent_pathpath::has_filenamepath::has_stempath::has_extension
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
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.
1) Checks whether root_path() is empty.
2) Checks whether root_name() is empty.
3) Checks whether root_directory() is empty.
4) Checks whether relative_path() is empty.
5) Checks whether parent_path() is empty.
6) Checks whether filename() is empty.
7) Checks whether stem() is empty.
8) Checks whether extension() is empty.
[edit] Parameters
(none)
[edit] Return value
true if the corresponding path component is not empty, false otherwise.
[edit] Exceptions
May throw implementation-defined exceptions.
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example