共用方式為


stack::container_type

A type that provides the base container to be adapted.

typedef Container container_type;

Remarks

The type is a synonym for the template parameter Container. All three STL sequence container classes — the vector class, list class, and the default class deque — meet the requirements to be used as the base container for a stack object. User-defined types satisfying these requirements may also be used.

For more information on Container, see the Remarks section of the stack Class topic.

Example

See the example for stack::stack for an example of how to declare and use container_type.

Requirements

Header: <stack>

Namespace: std

See Also

Reference

stack Class

Standard Template Library