AllocatorState

State of an allocator or pointer to an allocator.

State is zero for Mallocator, GCAllocator, and MMapAllocator and typically non-zero for the other.

EMSI containers has this state as their first field.

TODO: Move to Phobos and put beside std.experimental.allocator.common.stateSize.

mixin template AllocatorState (
Allocator
) if (
isAllocator!Allocator ||
isAllocator!(typeof(*Allocator.init))
) {}

Members

Aliases

allocator
alias allocator = Allocator.instance
Undocumented in source.

Variables

allocator
Allocator allocator;
Undocumented in source.

Meta