Files
XCSDD/docs/api/memory/manager/initialize.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

34 lines
583 B
Markdown

# MemoryManager::Initialize
```cpp
void Initialize();
```
初始化内存管理器。创建系统默认分配器,设置内存跟踪标志。应在程序启动早期调用,且仅可调用一次。
**参数:**
**返回:**
**复杂度:** O(n)
**示例:**
```cpp
#include <XCEngine/Memory/MemoryManager.h>
int main() {
// 程序启动时初始化
MemoryManager::Get().Initialize();
// 使用内存系统...
MemoryManager::Get().Shutdown();
return 0;
}
```
## 相关文档
- [MemoryManager 总览](manager.md) - 返回类总览