Difference between revisions of "cpp/container/priority queue/~priority queue"
From cppreference.com
< cpp | container | priority queue
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}} | ||
− | + | {{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
.