Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::AllocatorInstance< Allocator > Class Template Reference

#include <AllocatorInstance.h>

Inherits AZ::Internal::AllocatorInstanceBase< Allocator, AllocatorStorage::EnvironmentStoragePolicy< Allocator > >.

Detailed Description

template<class Allocator>
class AZ::AllocatorInstance< Allocator >

Standard allocator singleton, using Environment storage. Specialize this for your allocator if you need to control storage or lifetime, by changing the policy class used in AllocatorInstanceBase.

It is preferred that you don't do a complete specialization of AllocatorInstance, as the logic governing creation and destruction of allocators is complicated and susceptible to edge cases across all platforms and build types, and it is best to keep the allocator code flowing through a consistent codepath.


The documentation for this class was generated from the following file: