empty

Syntax:

    #include <queue>
    bool empty() const;

The empty() function returns true if the priority queue has no elements, false otherwise.

Related Topics: size