W3cubDocs

/C++

std::swap(std::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).

Parameters

lhs, rhs - tuples whose contents to swap

Return value

(none).

Exceptions

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

See also

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/tuple/swap2