C++ priority_queue swap()C++ priority_queue swap() function is used to swap the contents of one priority queue with another priority queue of same type and size. SyntaxConsider priority_queue 'pq' as a priority_queue object. Parameterpq1: It is a priority_queue whose contents are to be swapped. Return valueNone Example 1Output: elements in pqueue : 60 30 20 10 10 elements in mqueue : 8 6 3 2 1 Next TopicC++ priority_queue |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India