std::filesystem::path::empty
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::empty
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
bool empty() const noexcept;
(since C++17)
Checks if the path in generic format is empty.
Contents
[edit] Parameters
(none)
[edit] Return value
true if the path is empty, false otherwise.
[edit] 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) if the corresponding component is not present in the path.
An empty path is classified as a relative path.