Is std::priority_queue stable? i.e., are the elements with the same priority are popped from the queue in the same order as they were in the container input to queue?
Is std::priority_queue stable? i.e., are the elements with the same priority are popped from the queue in the same order as they were in the container input to queue?