Espaços nominais
Variantes
Acções

std::stack::push

Da cppreference.com
< cpp‎ | container‎ | stack
 
 
 
std :: stack
Funções de membro
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=
acesso. Elemento
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
Capacidade
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
Modificadores
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 value_type& value );
void push( value_type&& value );
(a partir do C++ 11)

Empurra o dado elemento value para o topo da pilha.

1) Efetivamente chama c.push_back(value)
2) Efetivamente chama c.push_back(std::move(value))

Índice

[editar] Parâmetros

value - o valor do elemento a empurrar

[editar] Valor de retorno

(nenhum)

[editar] Complexidade

Igual à complexidade de Container::push_back.

[editar] Veja também

(C++11)
constructs element in-place at the top
(função pública membro) [edit]
remove o elemento superior
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.

(função pública membro) [edit]