Vector 0.0.2
|
Vector control structure type. More...
Data Fields | |
size_t | element_size |
Size of the underling element type. | |
size_t | capacity |
Current amount of allocated elements. | |
size_t | ext_header_size |
Size of the extention header. | |
size_t | allocator_size |
Size of the allocator. | |
char | memory [] |
Beginning of the vector's memory region. | |
Vector control structure type.
Designed to be passed by reference. Functions that can cause reallocation of the vector must take a double pointer to a vector, this way vector pointer will be updated.
size_t vector_t::element_size |
size_t vector_t::capacity |
size_t vector_t::ext_header_size |
char vector_t::memory[] |
Beginning of the vector's memory region.
Must be offsetted by vector_t::ext_header_size and allocator size(if present) to get to the elements.