std::stack - cppreference.com
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. |
<tbody> </tbody>
| Elemento definito nell'header <stack> |
||
|
|
||
La classe std::stack è un adattatore contenitore che fornisce al programmatore la funzionalità di una pila - specificamente, una FILO (first-in, ultima-out) struttura dati.
Original:
The std::stack class is a container adapter that gives the programmer the functionality of a stack - specifically, a FILO (first-in, last-out) data structure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Membri tipi
Membro tipo Original: Member type The text has been machine-translated via Google Translate. |
Definition |
container_type
|
Container [modifica]
|
value_type
|
Container::value_type [modifica]
|
size_type
|
Container::size_type [modifica]
|
reference
|
Container::reference [modifica]
|
const_reference
|
Container::const_reference [modifica]
|
Membri funzioni
costruisce il stack (metodo pubblico) [modifica] | |
distrugge il stack (metodo pubblico) [modifica] | |
assegna valori all'adattatore contenitore Original: assigns values to the container adaptor The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Elemento accesso Original: Element access The text has been machine-translated via Google Translate. | |
accedere all'elemento superiore Original: access the top element The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Capacità Original: Capacity The text has been machine-translated via Google Translate. | |
verifica se il contenitore sottostante è vuoto Original: checks whether the underlying container is empty The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
restituisce il numero di elementi Original: returns the number of elements The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Modificatori Original: Modifiers The text has been machine-translated via Google Translate. | |
| inserts element at the top (metodo pubblico) [modifica] | |
(C++11) |
constructs element in-place at the top (metodo pubblico) [modifica] |
rimuove l'elemento superiore Original: removes the top element The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
swap il contenuto Original: swaps the contents The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Membri oggetti Original: Member objects The text has been machine-translated via Google Translate. | |
Container c |
contenitore sottostante Original: the underlying container The text has been machine-translated via Google Translate. (attributo protetto) [modifica] |
Non membri funzioni
Helper classi
specializzata il tratto tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. (funzione di modello) [modifica] | |