declaring a minheap in stl code example Example: min heap in c++ priority_queue <int, vector<int>, greater<int>> minHeap;