# MemoryManager::GetSystemAllocator 获取内部系统分配器。 ```cpp IAllocator* GetSystemAllocator(); ``` ## 行为说明 当前实现直接返回成员指针 `m_systemAllocator`,不会增加引用计数,也不会转移所有权。 ## 返回值 - `IAllocator*` - 系统分配器指针;未初始化或已关闭时为 `nullptr`。 ## 生命周期注意事项 - 这是一个非拥有指针。 - 只有在 [Initialize](Initialize.md) 之后、[Shutdown](Shutdown.md) 之前使用才安全。 ## 相关文档 - [返回类型总览](MemoryManager.md) - [Initialize](Initialize.md) - [Shutdown](Shutdown.md)