std::swap(std::queue)

来自cppreference.com

 
 
 
的std ::队列
成员函数
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.
queue::queue
queue::~queue
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.
queue::front
queue::back
容量
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
queue::empty
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.
queue::push
queue::emplace
queue::pop
queue::swap
 

检查到模板循环:Template:page template

template<  >

void swap( queue<> &lhs,

           queue<> &rhs );
专为std::swapstd::queue算法。 lhsrhs交换的内容。呼叫lhs.swap(rhs).
Original:
Specializes the std::swap algorithm for std::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.

[编辑] 另请参阅

交换的内容
Original:
swaps the contents
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]