Error thrown if memory allocation fails.
Destroys and deallocates p of type T. It is assumed the respective entities had been allocated with the same allocator.
Constructs a new class instance of type T using args as the parameter list for the constructor of T.
Constructs a value object of type T using args as the parameter list for the constructor of T and returns a pointer to the new object.
Constructs a new array with n elements.
Allocates $(D_PSYMBOL OutOfMemoryError) in a static storage and throws it.
Abstract class implementing a basic allocator.
The mixin generates common methods for classes and structs using allocators. It provides a protected member, constructor and a read-only property, that checks if an allocator was already set and sets it to the default one, if not (useful for structs which don't have a default constructor).
Sets the default allocator.
This module contains the interface for implementing custom allocators.
Allocators are classes encapsulating memory allocation strategy. This allows to decouple memory management from the algorithms and the data.