GetData

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

const void *GetData() const

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->GetData();