Namespaces
Variants

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

来自 zh.cppreference.net

 
 
 
 
~forward_list();
(自 C++11 起)
(自 C++26 起为 constexpr)

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

复杂度

线性于 * this 的大小。