stdx.allocator.building_blocks.null_allocator
-
Declaration
structNullAllocator;is an emphatically empty implementation of the allocator interface. Although it has no direct use, it is useful as a "terminator" in composite allocators.
-
Declaration
enum uintalignment;advertises a relatively large alignment equal to 64 KB. This is because never actually needs to honor this
alignmentand because composite allocators using shouldn't be unnecessarily constrained. -
Declaration
shared void[]allocate(size_t);Always returns .
-
Declaration
shared void[]alignedAllocate(size_t, uint);Always returns .
-
Declaration
shared void[]allocateAll();Always returns .
-
Declaration
shared boolexpand(ref void[]b, size_ts);
shared boolreallocate(ref void[]b, size_t);
shared boolalignedReallocate(ref void[]b, size_t, uint);These methods return .
Precondition: . This is because there is no other possible legitimate input.
-
Declaration
shared const Ternaryowns(void[]);Returns .
-
Declaration
shared const TernaryresolveInternalPointer(const void*, ref void[]);Returns .
-
Declaration
shared booldeallocate(void[]b);No-op.
Precondition:
-
Declaration
shared booldeallocateAll();No-op.
-
Declaration
shared const Ternaryempty();Returns .
-
Declaration
static shared NullAllocatorinstance;Returns the global
instanceof the .
-