Namespace
Varianti

std::stack::push

Da cppreference.com.
< cpp‎ | container‎ | stack

 
 
 
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
 
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.

[modifica] Complessità

Equal to the complexity of Container::push_back.

[modifica] Vedi anche

(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.
You can help to correct and verify the translation. Click here for instructions.

(metodo pubblico) [modifica]