42 return heap.isEmpty();
47 return heap.getSize();
67 std::cout <<
"Priority Queue : ";
This class models a structure called a MinHeap in which value in the root node is minimum.
This class models Priority Queue in which values are processed in order of priority.
void display()
Prints the values of the priority queue.
MinHeap< T > heap
MinHeap Data Structure for Priority Queue implementation.
T dequeue()
Removes and returns the highest priority value.
void enqueue(const T &)
Adds value to the priority queue