Overview
This class is a POD class. It stores the description information and actual data elements in a continuous memory space. The element type is ContinuousVector. Dynamic capacity expansion is not supported.
The description information of this class includes the maximum number of elements that can be stored and the number of elements that are actually stored.
Header Files to Be Included
1 | #include <continuous_vector.h> |
Public Member Functions
void Init(const size_t capacity) template<typename T> ContinuousVector *Add(size_t inner_vector_capacity) const ContinuousVector *Get(const size_t index) const size_t GetSize() const static size_t GetOverHeadLength(const size_t capacity)
Parent topic: ContinuousVectorVector