how to initialize priority queue c++

include

// Initializing a priority queue std::priority_queue pq;

// Explanation: // 1. We include the header file which provides the priority_queue class. // 2. We declare the priority_queue object using the syntax std::priority_queue pq;