目录

GetCapacity

Function Description

Obtains the maximum number of elements that can be saved.

Function Prototype

size_t GetCapacity() const

Parameters

None

Return Value

Maximum number of elements that can be saved

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->GetCapacity(); // 100U