makeArray

Make an array of the specified type.

T[]
makeArray
(
T
Allocator
)
(
ref Allocator alloc
,
size_t length
,
T init = T.init
)
if (
isAllocator!Allocator
)

Examples

Mallocator alloc;
ubyte[] mem = alloc.makeArray!ubyte(64);
scope(exit) alloc.dispose(mem);