Namespaces
Variants
Views
Actions

std::swap(std::tuple)

From cppreference.com
< cpp | utility | tuple
Revision as of 11:58, 2 November 2012 by P12bot (Talk | contribs)
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).

Contents

Parameters

lhs, rhs - tuples whose contents to swap

Return value

(none)

Exceptions

noexcept specification:  (since C++11)
noexcept(noexcept(lhs.swap(rhs)))

See also