std::swap(std::tuple)

From Cppreference

Jump to: navigation, search
template< class... Types >
void swap( tuple<Types...>& lhs, tuple<Types...>& rhs );
(C++11 feature)

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

Contents

[edit] Parameters

lhs, rhs - tuples whose contents to swap

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  (C++11 feature)

noexcept(noexcept(lhs.swap(rhs)))

[edit] See also