GetCapacity

Description

Obtains the maximum number of elements that can be saved.

Prototype

size_t GetCapacity() const

Parameters

None

Returns

Maximum number of elements that can be saved

Restrictions

None

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