std::stack::push
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 push(const T& value ); | ||
void push( T&& value ); | (dal C++11) | |
Pushes the given element value
to the top of the stack.
1) Effectively calls c.push_back(value)
2) Effectively calls c.push_back(std::move(value))
Indice |
[modifica]Parametri
value | - | il valore dell'elemento di spingere Original: the value of the element to push 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à
Equal to the complexity of Container::push_back.
[modifica]Vedi anche
(C++11) | constructs element in-place at the top (metodo pubblico) |
rimuove l'elemento superiore Original: removes the top element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |