# std::experimental::filesystem::path::empty

> C++ Atlas: `cppatlas.com/w/cpp/experimental/fs/path/empty` | Source: https://en.cppreference.com/w/cpp/experimental/fs/path/empty | Domain: Technical specifications

Checks if the path is empty.

## Official Specification Summary (cppreference)

```cpp
bool empty() const; // (filesystem TS)
```

Checks if the path is empty.

### Parameters

(none)

### Return value

`true` if the path is empty, `false` otherwise.

### Exceptions

`noexcept` specification:

`noexcept`

### See also

- [`has_root_path`](https://en.cppreference.com/w/cpp/experimental/fs/path/has_path), [`has_root_name`](https://en.cppreference.com/w/cpp/experimental/fs/path/has_path), [`has_root_directory`](https://en.cppreference.com/w/cpp/experimental/fs/path/has_path), [`has_relative_path`](https://en.cppreference.com/w/cpp/experimental/fs/path/has_path), [`has_parent_path`](https://en.cppreference.com/w/cpp/experimental/fs/path/has_path), [`has_filename`](https://en.cppreference.com/w/cpp/experimental/fs/path/has_path), [`has_stem`](https://en.cppreference.com/w/cpp/experimental/fs/path/has_path), [`has_extension`](https://en.cppreference.com/w/cpp/experimental/fs/path/has_path): checks if the corresponding path element is not empty (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/fs/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.