Namespaces
Variants
Views
Actions

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

From cppreference.com
m (Shorten template names. Use {{lc}} where appropriate.)
m (langlinks)
 
Line 1: Line 1:
 
{{include page|cpp/container/destructor|priority_queue}}
 
{{include page|cpp/container/destructor|priority_queue}}
  
[[de:cpp/container/priority queue/~priority queue]]
+
{{langlinks|de|es|fr|it|ja|pt|ru|zh}}
[[es:cpp/container/priority queue/~priority queue]]
+
[[fr:cpp/container/priority queue/~priority queue]]
+
[[it:cpp/container/priority queue/~priority queue]]
+
[[ja:cpp/container/priority queue/~priority queue]]
+
[[pt:cpp/container/priority queue/~priority queue]]
+
[[ru:cpp/container/priority queue/~priority queue]]
+
[[zh:cpp/container/priority queue/~priority queue]]
+

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.