Barray

A reusable array that ratchets up in capacity.

Alias This

array

Members

Functions

dtor
void dtor()

Release all memory used.

push
T* push()

Append a 0-initialized element of T to array

push
void push(T t)

Append element t to array.

remove
void remove(size_t i)

Move the last element from the array into i. Reduce the array length by one.

reset
void reset()

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

setLength
void setLength(size_t length)

Set useable length of array.

Suggestion Box / Bug Report