# std::experimental::any::swap

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

Swaps the content of two any objects.

## Official Specification Summary (cppreference)

```cpp
void swap(any& other) noexcept; // (library fundamentals TS)
```

Swaps the content of two `any` objects.

### Parameters

- `other` - object to swap with

### Return value

(none)

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