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

std::swap(std::priority_queue)

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

 
 
 
зЬй :: priority_queue
Член функций
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.
priority_queue::priority_queue
priority_queue::~priority_queue
priority_queue::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.
priority_queue::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.
priority_queue::empty
priority_queue::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.
priority_queue::push
priority_queue::emplace
priority_queue::pop
priority_queue::swap
 

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

template<  >

void swap( priority_queue<> &lhs,

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