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

std::stack::swap

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

 
 
 
зЬй :: стека
Член функций
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.
stack::stack
stack::~stack
stack::operator=
Элемент доступа
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::top
Потенциала
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::empty
stack::size
Модификаторы
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::push
stack::emplace
stack::pop
stack::swap
 
void swap( const stack<T, Container>& other );
Обмен содержимого контейнера адаптер с теми other. Effectively calls using std::swap; swap(c, other.c);
Original:
Exchanges the contents of the container adaptor with those of other. Effectively calls using std::swap; swap(c, other.c);
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Содержание

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

other -
Контейнер адаптер для обмена содержимым с
Original:
container adaptor to exchange the contents with
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.

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

То же, что основной контейнер (линейной, если Container является зЬй :: массиве, постоянная иное)
Original:
Same as underlying container (linear if Container is зЬй :: массиве, constant otherwise)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

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

Специализируется std::swap алгоритм
Original:
specializes the std::swap algorithm
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(шаблон функции) [edit]