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.

Members

Aliases

opDollar
alias opDollar = length
Undocumented in source.

Functions

dtor
void dtor()

Release all memory used.

opIndex
inout(T) opIndex(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
inout(T)[] opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
inout(T)[] opSlice(size_t a, size_t b)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

Variables

barray
Barray!T barray;
Undocumented in source.
length
size_t length;
Undocumented in source.

Meta