AllocationContext.Unique

Unique memory owner, holds one instance of type T. Don't use it to hold built-in arrays, use custom array type instead. Deallocates in destructor.

template AllocationContext(Allocator = Mallocator, bool Atomic = true)
struct Unique (
T
) if (
!isArray!T
) {
enum HoldsAllocator;
Allocator allocator;
}

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

Copying this object is disabled.

A postblit is present on this object, but not explicitly documented in the source.

Meta