Max Heap

template<class T>
class MaxHeap

Public Functions

inline MaxHeap()

Creates an empty heap.

inline MaxHeap(const std::vector<T> &v)

Creates a new heap containing the elements of v in O(n)

inline int size() const
inline bool isEmpty() const
inline const T &max() const
void insert(const T&)
void removeMax()