priority_queue::empty

bool empty() const;

The member function returns true for an empty controlled sequence.

See the related sample program.