std.experimental.allocator.building_blocks.null_allocator
struct NullAllocator
Types 1
structNullAllocator
NullAllocator is an emphatically empty implementation of the allocator interface. Although it has no direct use, it is useful as a "terminator" in composite allocators.
Fields
uint alignment`NullAllocator` advertises a relatively large alignment equal to 64 KB. This is because `NullAllocator` never actually needs to honor this alignment and because composite allocators using `NullAllo...NullAllocator instanceReturns the `shared` global instance of the `NullAllocator`.Methods
bool expand(ref void[] b, size_t s) sharedThese methods return `false`. Precondition: b is null. This is because there is no other possible legitimate input.