Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 2.3 KB

queue.md

File metadata and controls

46 lines (34 loc) · 2.3 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: <queue>
<queue>
11/04/2016
<queue>
queue header
24fcf350-eb0e-48cf-9fef-978be1aeda1f

<queue>

Defines the class templates priority_queue and queue and several supporting templates.

Requirements

Header: <queue>

Namespace: std

Note

The <queue> library also uses the #include <initializer_list> statement.

Members

Operators

Name Description
operator!= Tests if the queue object on the left side of the operator is not equal to the queue object on the right side.
operator< Tests if the queue object on the left side of the operator is less than the queue object on the right side.
operator<= 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== Tests if the queue object on the left side of the operator is equal to the queue object on the right side.
operator> Tests if the queue object on the left side of the operator is greater than the queue object on the right side.
operator>= 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

Name Description
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

Header Files Reference
Thread Safety in the C++ Standard Library
C++ Standard Library Reference