bool empty() const noexcept; | (since C++17) (until C++20) | |
[[nodiscard]] bool empty() const noexcept; | (since C++20) |
Checks if the path in generic format is empty.
(none).
true
if the path is empty, false
otherwise.
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
) if the corresponding component is not present in the path.
An empty path is classified as a relative path.
constructs a path (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/filesystem/path/empty