std::experimental::any::swap - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::any::swap

From cppreference.com
< cpp‎ | experimental‎ | any

void swap(any& other); |  | (library fundamentals TS)

Swaps the content of two `any` objects.

### [edit] Parameters

other | - | object to swap with

### [edit] Return value

(none)

### [edit] Exceptions

`noexcept` specification:
noexcept
Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/any/swap&oldid=71452"
Category:

- unconditionally noexcept