int SizePQ(hPQ, sizechange) | |||
HPQ hPQ; | |||
int sizechange; |
The SizePQ function increases or decreases the size of the priority queue.
hPQ
Identifies a priority queue.
sizechange
Specifies the number of entries to be added or removed.
The return value is the number of entries that can be accommodated by the resized priority queue. The return value is -1 if the resulting size is smaller than the actual number of elements in the priority queue.