containers ~mutability-checks (2021-12-18T07:12:44.3029946)
Dub
Repo
BlockAllocator.allocate
memory
allocators
BlockAllocator
Standard allocator operation.
struct
BlockAllocator
(size_t blockSize)
pure nothrow @
trusted
void
[]
allocate
(
size_t
bytes
)
out (result) { import std.string : format; assert (result.length == bytes, format("Allocated %d bytes when %d" ~ " bytes were requested.", result.length, bytes)); }
Meta
Source
See Implementation
memory
allocators
BlockAllocator
destructors
~this
functions
allocate
manifest constants
alignment
maxAllocationSize
postblits
this(this)
Standard allocator operation.