std::stack::swap
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
void swap( const stack<T, Container>& other ); |
||
Scambia il contenuto del contenitore dell'adattatore con quelli
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.
Indice |
[modifica] Parametri
other | - | Adattatore contenitore per scambiare i contenuti con
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. |
[modifica] Valore di ritorno
(Nessuno)
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.
[modifica] Complessità
Come contenitore sottostante (lineare se
Container
è std :: array, costante in caso contrario)Original:
Same as underlying container (linear if
Container
is std :: array, 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.
[modifica] Vedi anche
specializzata l'algoritmo 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. (funzione di modello) |