Namespace
Varianti

cpp/container/stack/swap2: differenze tra le versioni

Da cppreference.com.
< cpp‎ | container‎ | stack
m (una revisione importata: Translate from the English version)
m (r2.7.3) (Bot: Aggiungo de, en, es, fr, ja, pt, ru, zh)
Riga 1: Riga 1:
 
{{page template|cpp/container/swap2|stack}}
 
{{page template|cpp/container/swap2|stack}}
 +
 +
 +
 +
 +
 +
 +
 +
 +

Versione delle 11:14, 2 nov 2012

 
 
 
std :: stack
Membri funzioni
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=
Elemento accesso
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
Capacità
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
Modificatori
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
 
template< class T, class Container >

void swap( stack<T,Container> &lhs,

           stack<T,Container> &rhs );
Specializzato l'algoritmo std::swap per std::stack. Scambia il contenuto di lhs e rhs. Chiamate 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.

Indice

Parametri

lhs, rhs -
il cui contenuto di scambiare
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.

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.

Complessità

Same as swapping the underlying container.

Vedi anche

swap il contenuto
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.

(metodo pubblico) [modifica]