std::stack::operator=
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. |
stack<T, Container>& operator=( const stack<T,Container>& other ); |
(1) | |
stack<T, Container>& operator=( stack<T,Container>&& other ); |
(2) | (dal C++11) |
Sostituisce il contenuto del contenitore dell'adattatore con quelli
1) other
.Original:
Replaces the contents of the container adaptor with those of
other
.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.
Copia operatore di assegnazione. Sostituisce il contenuto con una copia del contenuto di
2) other
. Chiama efficacemente c = other.c;. (dichiarato in modo implicito)Original:
Copy assignment operator. Replaces the contents with a copy of the contents of
other
. Effectively calls c = other.c;. (dichiarato in modo implicito)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.
Spostare operatore di assegnazione. Sostituisce il contenuto con quelli della
other
usando la semantica spostamento. Chiama efficacemente c = std::move(other.c); (dichiarato in modo implicito)Original:
Move assignment operator. Replaces the contents with those of
other
using move semantics. Effectively calls c = std::move(other.c); (dichiarato in modo implicito)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 | - | altro adattatore contenitore da utilizzare come sorgente
Original: another container adaptor to be used as source 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
*this
[modifica] Complessità
Equivalente a quella del {{{1}}} del contenitore sottostante.
Original:
Equivalent to that of {{{1}}} of the underlying container.
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
costruisce il stack (metodo pubblico) |