Add
Function Usage
Adds a ContinuousVector element whose capacity is the value of inner_vector_capacity.
Prototype
1 | template<typename T> ContinuousVector *Add(size_t inner_vector_capacity) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
inner_vector_capacity |
Input |
Capacity of the new ContinuousVector element. |
Returns
Start address of the new ContinuousVector element
Constraints
None
Examples
1 2 3 4 5 | // Create the ContinuousVectorVector object cvv. ... // Add elements. size_t inner_vector_capacity = 2; auto cv = cvv->Add(inner_vector_capacity); |
Parent topic: ContinuousVectorVector