DefaultAllocator

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).

Constructors

this
this(Allocator allocator)

Members

Properties

allocator
shared(Allocator) allocator [@property getter]

This property checks if the allocator was set in the constructor and sets it to the default one, if not.

allocator
shared(Allocator) allocator [@property getter]

This property checks if the allocator was set in the constructor and sets it to the default one, if not.

Variables

allocator_
Allocator allocator_;

Allocator.

Meta