[ Web Proxy ]
URL:
Viewing: https://de.cppreference.com/cpp/container/stack/push [Back]  [Original]

std::stack::push cppreference.com
cppreference.com
Namensrume
Varianten

std::stack::push

Aus cppreference.com

<metanoindex/>

 
 
 
std :: stack
Member-Funktionen
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=
Elementzugriff zerstrt
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
Kapazitt
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
Modifiers
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
 
<tbody> </tbody>
void push( const T& value );
void push( T&& value );
(seit 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))

Parameter

value -
der Wert des Elements zu drcken
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.

Rckgabewert

(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Komplexitt

Equal to the complexity of Container::push_back.

Siehe auch

(C++11)
constructs element in-place at the top
(ffentliche Elementfunktion) [edit]
entfernt das oberste Element
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.

(ffentliche Elementfunktion) [edit]

Web Proxy Viewer  |  New URL  |  Original Page