std::filesystem::path::empty
From cppreference.com
< cpp | filesystem | path
C++
std::filesystem::path
Member types | ||||||||||||||||||||||||||
Member constants | ||||||||||||||||||||||||||
Member functions | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Path decomposition | ||||||||||||||||||||||||||
Non-member functions | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Helper classes | ||||||||||||||||||||||||||
|
bool empty() const noexcept; |
(since C++17) | |
Checks if the path in generic format is empty.
Parameters
(none)
Return value
true if the path is empty, false otherwise.
Notes
An empty path can be obtained by calling clear and by default-constructing a path
. It can also be returned by a path decomposition function (such as extension
An empty path is classified as a relative path.
See also
constructs a path (public member function) |