|
libcute 0.1
|
Growable array of elements. More...
#include <vector.h>

Public Attributes | |
| cu_Slice_Optional | data |
| size_t | length |
| size_t | capacity |
| cu_Layout | layout |
| cu_Allocator | allocator |
| cu_Destructor_Optional | destructor |
Growable array of elements.
The vector manages a contiguous memory block whose layout is described by cu_Layout. It automatically resizes when elements are inserted.
| cu_Allocator cu_Vector::allocator |
allocator used for storage
| size_t cu_Vector::capacity |
allocated element capacity
| cu_Slice_Optional cu_Vector::data |
memory backing the vector
| cu_Destructor_Optional cu_Vector::destructor |
optional element destructor
| cu_Layout cu_Vector::layout |
layout of each element
| size_t cu_Vector::length |
number of valid elements