Пространства имён
Варианты
Действия

std::swap(std::tuple)

Материал из cppreference.com

 
 
 
std::tuple
Член функций
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
tuple::tuple
tuple::operator=
tuple::swap
Не являющиеся членами функций
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
make_tuple
tie
forward_as_tuple
None
operator=
operator!=
operator<
operator<=
operator>
operator>=
std::swap
get
Вспомогательные классы
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
tuple_size
tuple_element
uses_allocator
ignore
 
template< class... Types >
void swap( tuple<Types...>& lhs, tuple<Types...>& rhs );
(начиная с C++11)
Меняет местами содержимое lhs и rhs. Эквивалент lhs.swap(rhs).
Original:
Swaps the contents of lhs and rhs. Equivalent to lhs.swap(rhs).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Содержание

[править] Параметры

lhs, rhs -
кортежей, содержимое которого поменяться
Original:
tuples whose contents to swap
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Возвращаемое значение

(Нет)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Исключения

noexcept-спецификация:  (начиная с C++11)
noexcept(noexcept(lhs.swap(rhs)))

[править] См. также