目录

MutableData

Function Description

Obtains the pointer address of the first element. The data in [GetData(), reinterpret_cast<T *>(GetData()) + GetSize()] is the data stored in the current container.

Function Prototype

void *MutableData()

Parameters

None

Return Value

Pointer address of the first element

Restrictions

None

Calling Example

size_t capacity = 100U;
auto cv_holder = ContinuousVector::Create<int64_t>(capacity);
auto cv = reinterpret_cast<ContinuousVector *>(cv_holder.get());
auto cap = cv->MutableData();