Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/list/~list"

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

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.