priority_queue::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. The STL sequence container class deque and the default class vector meet the requirements to be used as the base container for a priority_queue object. User-defined types satisfying the requirements may also be used.

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

Example

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

Requirements

Header: <queue>

Namespace: std

See Also

Reference

priority_queue Class

Standard Template Library