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.

nothrow @safe
struct Rarray (
T
) {
Barray!T barray;
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