working of priority queue code example Example: priority_queue std::priority_queue<int, std::vector<int>, std::greater<int>>