# std::experimental::filesystem::path::swap

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

Swaps the contents of *this and other.

## Official Specification Summary (cppreference)

```cpp
void swap( path& other ); // (1) (filesystem TS)
```

Swaps the contents of `*this` and `other`.

### Parameters

- `other` - another path to exchange the contents with

### Return value

(none)

### Exceptions

`noexcept` specification:

`noexcept`

### Complexity

Constant.

### See also

> Note: This section is incomplete

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