|
CVEC v1.0.0-build
Functional C++ vector-like manipulation for C
|
Custom generic dynamic vector type. More...
#include <cvec.h>
Public Attributes | |
| bool | __usedSplit |
| Internal flag used by split operations. | |
| size_t | cap |
| Allocated storage capacity. | |
| void * | data |
| Pointer to contiguous allocated memory storing array elements. | |
| bool | dynamicCap |
| Enables automatic capacity growth when true. | |
| size_t | elemLen |
| Size in bytes of each element. | |
| bool | forceCap |
| Prevents capacity expansion if true; insertion fails when full. | |
| bool | initialized |
| Tracks whether this CVEC has been properly initialized. | |
| size_t | size |
| Current number of stored items. | |
Custom generic dynamic vector type.
CVEC is a flexible container that stores a sequence of elements of uniform size. It behaves similarly to std::vector in C++, supporting dynamic resizing, insertion, deletion, merging, reversing, and splitting.
| bool CVEC::__usedSplit |
| void* CVEC::data |
| bool CVEC::dynamicCap |
| bool CVEC::forceCap |
| bool CVEC::initialized |