std::stack::swap
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| 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.
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.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 複雜性
作為基礎容器(線性如果相同
Container是的std ::陣列,否則不變)Original:
Same as underlying container (linear if
Container is 的std ::陣列, constant otherwise)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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. (函數模板) | |