Difference between revisions of "cpp/container/list/~list"
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 | + | {{include page|cpp/container/destructor|list}} |
+ | |||
+ | {{langlinks|de|es|fr|it|ja|pt|ru|zh}} |
Latest revision as of 07:25, 13 November 2021
~list(); |
||
A destructor.
Destructs the list
. 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 list
.