- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
521 B
521 B
Array::~Array()
~Array();
销毁数组,释放所有已分配的元素并释放内存。
行为:
- 调用所有元素的析构函数
- 释放底层数据缓冲区内存
注意: 使用 RAII 模式,无需手动调用析构。
线程安全: ❌ 析构期间不可并发访问
示例:
{
Containers::Array<int> arr = {1, 2, 3};
// 使用 arr...
} // arr 在此自动销毁,析构函数被调用
相关文档
- Array 总览 - 返回类总览