20 lines
396 B
C++
20 lines
396 B
C++
//
|
|
// Created by PC on 25-8-9.
|
|
//
|
|
|
|
#ifndef MAXPRIORITYQUEUE_H
|
|
#define MAXPRIORITYQUEUE_H
|
|
|
|
template <class T>
|
|
class maxPriorityQueue {
|
|
public:
|
|
virtual ~maxPriorityQueue() = default;
|
|
virtual bool empty() const = 0;
|
|
virtual int size() const = 0;
|
|
virtual T& top() = 0;
|
|
virtual void pop() = 0;
|
|
virtual void push(const std::pair<T, int>& x) = 0;
|
|
};
|
|
|
|
#endif //MAXPRIORITYQUEUE_H
|