Rarray

While Barray is good for reusing a Barray's previous allocation, it doesn't work if an element of the Barray is itself a Barray. Rarray aims to fix that.

extern (C++) nothrow @safe
struct Rarray (
T
) {
@safe
Barray!T barray;
@safe
size_t length;
}

Members

Functions

dtor
void dtor()

Release all memory used.

push
T* push()

Append an uninitialized element of T to array. This leaves allocations used by T intact.

reset
void reset()

Resets length of array to 0 without free'ing the array memory. This sets it up for re-using the memory.

Meta