std::list<T,Allocator>::
~list
<
cpp
|
container
|
list
~list
(
)
;
销毁
list
。调用元素的析构函数,然后解分配所用的存储。注意,若元素是指针,则不销毁所指向的对象。
复杂度
与
list
大小成线性。