Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/stack/pop"

From cppreference.com
< cpp‎ | container‎ | stack
(Created page with "{{cpp/container/pop|stack}}")
 
m (langlinks)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{cpp/container/pop|stack}}
+
{{include page|cpp/container/pop|stack}}
 +
 
 +
{{langlinks|cs|de|es|fr|it|ja|pl|pt|ru|tr|zh}}

Latest revision as of 06:04, 15 November 2021

 
 
 
 
void pop();

Removes the top element from the stack. Effectively calls c.pop_back().

Contents

[edit] Parameters

(none)

[edit] Return value

(none)

[edit] Complexity

Equal to the complexity of Container::pop_back.

[edit] Example

[edit] See also

(C++11)
constructs element in-place at the top
(public member function) [edit]
inserts element at the top
(public member function) [edit]
accesses the top element
(public member function) [edit]