AllocatorList.alignedAllocate

Allocate a block of size s with alignment a. First tries to allocate from the existing list of already-created allocators. If neither can satisfy the request, creates a new allocator by calling make(s + a - 1) and delegates the request to it. However, if the allocation fresh off a newly created allocator fails, subsequent calls to alignedAllocate will not cause more calls to make.

struct AllocatorList(Factory, BookkeepingAllocator = GCAllocator)
static if(hasMember!(Allocator, "alignedAllocate"))
void[]
alignedAllocate
(
size_t s
,)

Meta