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

std::unordered_set::swap

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

 
 
 
 
void swap( unordered_set& other );
(начиная с C++11)

Exchanges the contents of the container with those of other. All iterators and references remain valid.

The behavior is undefined if get_allocator()!= other.get_allocator() and std::allocator_traits<allocator_type>::propagate_on_container_swap::value!=true.

Содержание

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

other
Контейнер для обмена содержимым с
Оригинал:
container to exchange the contents with
Текст был переведён автоматически используя Переводчик Google.
Вы можете проверить и исправить перевод. Для инструкций щёлкните сюда.

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

(Нет)

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

спецификация noexcept:  
noexcept
  

[править]Сложность

Constant

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

специализация алгоритма std::swap
(шаблон функции)[править]
close