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

std::array::swap

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

<metanoindex/>

 
 
 
 
<tbody> </tbody>
void swap( array& other );
(начиная с C++11)

Exchanges the contents of the container with those of other. Does not cause iterators and references to associate with the other container.

Параметры

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

Возвращаемое значение

(Нет)

Исключения

спецификация noexcept:  
noexcept(noexcept(std::swap(declval<T&>(), declval<T&>())))

Сложность

Linear in size of the container.

См. также

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