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
This commit is contained in:
28
docs/api/containers/array/destructor.md
Normal file
28
docs/api/containers/array/destructor.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Array::~Array()
|
||||
|
||||
```cpp
|
||||
~Array();
|
||||
```
|
||||
|
||||
销毁数组,释放所有已分配的元素并释放内存。
|
||||
|
||||
**行为:**
|
||||
- 调用所有元素的析构函数
|
||||
- 释放底层数据缓冲区内存
|
||||
|
||||
**注意:** 使用 RAII 模式,无需手动调用析构。
|
||||
|
||||
**线程安全:** ❌ 析构期间不可并发访问
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
{
|
||||
Containers::Array<int> arr = {1, 2, 3};
|
||||
// 使用 arr...
|
||||
} // arr 在此自动销毁,析构函数被调用
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Array 总览](array.md) - 返回类总览
|
||||
Reference in New Issue
Block a user