다음을 통해 공유


queue Members

Reference

Constructors

queue

Constructs a queue 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 the queue.

size_type

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

value_type

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

Member Functions

back

Returns a reference to the last and most recently added element at the back of the queue.

empty

Tests if the queue is empty.

front

Returns a reference to the first element at the front of the queue.

pop

Removes an element from the front of the queue.

push

Adds an element to the back of the queue.

size

Returns the number of elements in the queue.

See Also

Concepts

queue Class

Thread Safety in the Standard C++ Library

Standard Template Library