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

std::swap(std::stack)

Материал из 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
 

Обнаружена петля в шаблонах: Шаблон:page template

template<  >

void swap( stack<> &lhs,

           stack<> &rhs );
Специализируется std::swap алгоритм std::stack. Меняет местами содержимое lhs и rhs. Звонки lhs.swap(rhs).
Original:
Specializes the std::swap algorithm for std::stack. Swaps the contents of lhs and rhs. Calls 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:
containers 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.

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

Same as swapping the underlying container.

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

обмениевает содержимое
(public функция-член) [edit]