Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/priority queue/~priority queue"

From cppreference.com
m (Add link to edit the included template)
m (langlinks)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
{{page template|cpp/container/destructor|priority_queue}}
+
{{include page|cpp/container/destructor|priority_queue}}
 +
 
 +
{{langlinks|de|es|fr|it|ja|pt|ru|zh}}

Latest revision as of 23:55, 30 August 2021

 
 
 
 
~priority_queue();

A destructor. Destructs the priority_queue. The destructors of the elements are called and the used storage is deallocated. Note, that if the elements are pointers, the pointed-to objects are not destroyed.

[edit] Complexity

Linear in the size of the priority_queue.