##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::swap(std::tuple)

From cppreference.com
< cpp‎ | utility‎ | tuple

template< class... Types > void swap( tuple<Types...>& lhs, tuple<Types...>& rhs ); |  | (since C++11)

Swaps the contents of `lhs` and `rhs`. Equivalent to lhs.swap(rhs).

### [edit] Parameters

lhs, rhs | - | tuples whose contents to swap

### [edit] Return value

(none)

### [edit] Exceptions

`noexcept` specification:
noexcept(noexcept(lhs.swap(rhs)))

### [edit] See also

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/utility/tuple/swap2&oldid=63122"
Category:

- conditionally noexcept