Namespaces
Variants

std::map<Key,T,Compare,Allocator>::~map

来自 zh.cppreference.net
< cpp | 容器 | map

 
 
 
 
~map();
(constexpr 自 C++26 起)

销毁 map。元素的析构函数会被调用(顺序未指定),动态分配的存储(如果有的话)会被释放。注意,如果元素是指针,则不会销毁指针所指向的对象。

复杂度

线性于 * this 的大小。