Compartilhar via


stack Members

Reference

Constructors

stack

Constructs a stack that is empty or that is a copy of a base container object.

Typedefs

container_type

A type that provides the base container to be adapted by a stack.

size_type

An unsigned integer type that can represent the number of elements in a stack.

value_type

A type that represents the type of object stored as an element in a stack.

Member Functions

empty

Tests if the stack is empty.

pop

Removes the element from the top of the stack.

push

Adds an element to the top of the stack.

size

Returns the number of elements in the stack.

top

Returns a reference to an element at the top of the stack.

See Also

Reference

stack Class

Thread Safety in the Standard C++ Library

Standard Template Library