docs: rebuild Memory API content

This commit is contained in:
2026-03-26 18:02:29 +08:00
parent ce2eee32e3
commit dc252502ac
66 changed files with 1182 additions and 1066 deletions

View File

@@ -1,29 +1,15 @@
# IAllocator::~IAllocator()
# IAllocator::Destructor
销毁对象并释放相关资源
通过基类指针安全销毁分配器
```cpp
virtual ~IAllocator() = default;
```
该方法声明于 `XCEngine/Memory/Allocator.h`,当前页面用于固定 `IAllocator` 类目录下的方法级 canonical 路径。
## 行为说明
**参数:**
**返回:** `void` - 无返回值。
**示例:**
```cpp
#include <XCEngine/Memory/Allocator.h>
void Example() {
XCEngine::Memory::IAllocator object;
// 对象离开作用域时会自动触发析构。
}
```
虚析构函数保证 `std::unique_ptr<IAllocator>` 或基类指针可以正确销毁派生分配器对象
## 相关文档
- [返回类总览](Allocator.md)
- [返回模块目录](../Memory.md)
- [返回类总览](Allocator.md)