# std::filesystem::path::empty

> C++ Atlas: `cppatlas.com/w/cpp/filesystem/path/empty` | Source: https://en.cppreference.com/w/cpp/filesystem/path/empty | Domain: Filesystem | Standards: C++17

Checks if the path in generic format is empty.

## Official Specification Summary (cppreference)

```cpp
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`) if the corresponding component is not present in the path.

An empty path is classified as a relative path.

### See also

- [(constructor)](https://en.cppreference.com/w/cpp/filesystem/path/path): constructs a `path` (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/filesystem/path/empty (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.