In C++, priority queues are implemented as a max heap so the element with highest value is always on top.