Share via


<queue>

Defines the template classes priority_queue and queue and several supporting templates.

#include <queue>

Operators

operator!= (<queue>)

Tests if the queue object on the left side of the operator is not equal to the queue object on the right side.

operator< (<queue>)

Tests if the queue object on the left side of the operator is less than the queue object on the right side.

operator<= (<queue>)

Tests if the queue object on the left side of the operator is less than or equal to the queue object on the right side.

operator== (<queue>)

Tests if the queue object on the left side of the operator is equal to the queue object on the right side.

operator> (<queue>)

Tests if the queue object on the left side of the operator is greater than the queue object on the right side.

operator>= (<queue>)

Tests if the queue object on the left side of the operator is greater than or equal to the queue object on the right side.

Classes

queue Class

A template container adaptor class that provides a restriction of functionality limiting access to the front and back elements of some underlying container type.

priority_queue Class

A template container adaptor class that provides a restriction of functionality limiting access to the top element of some underlying container type, which is always the largest.

See Also

Reference

Thread Safety in the Standard C++ Library

Standard Template Library

Other Resources

<queue> Members

Header Files