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