Files
XCSDD/docs/api/containers/array/destructor.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- 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
2026-03-19 12:44:08 +08:00

29 lines
521 B
Markdown

# Array::~Array()
```cpp
~Array();
```
销毁数组,释放所有已分配的元素并释放内存。
**行为:**
- 调用所有元素的析构函数
- 释放底层数据缓冲区内存
**注意:** 使用 RAII 模式,无需手动调用析构。
**线程安全:** ❌ 析构期间不可并发访问
**示例:**
```cpp
{
Containers::Array<int> arr = {1, 2, 3};
// 使用 arr...
} // arr 在此自动销毁,析构函数被调用
```
## 相关文档
- [Array 总览](array.md) - 返回类总览