C++ priority_queue empty()C++ priority_queue empty() function is used to check whether the priority_queue container is empty or not. If priority_queue is empty, it returns true otherwise false. SyntaxConsider priority_queue 'pq' as a priority_queue object. ParameterIt does not take any parameter. Return valueNull Example 1Output: false Example 2Output: false true
Next TopicC++ priority_queue
|