Namespaces
Variants

std::deque<T,Allocator>::~deque

来自 zh.cppreference.net

 
 
 
 
~deque();
(constexpr 自 C++26)

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

复杂度

线性于 * this 的大小。