##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::swap(std::experimental::any)

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

void swap(any& lhs, any& rhs); |  | (library fundamentals TS)

Swaps the content of two `any` objects. Calls lhs.swap(rhs).

### [edit] Parameters

lhs, rhs | - | objects to swap

### [edit] Return value

(none)

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] See also

swap | swaps two `any` objects (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/any/swap2&oldid=91468"
Category:

- unconditionally noexcept

Hidden categories:

- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template