std::experimental::swap - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::swap

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

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

Swaps the content of two `any` objects.

### [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=71519"
Category:

- unconditionally noexcept