Searched refs:newCapacity (Results 1 – 2 of 2) sorted by relevance
136 bool DynamicVector<ElementType>::reserve(size_t newCapacity) { in reserve() argument140 if (newCapacity <= mCapacity) { in reserve()144 memoryAlloc(newCapacity * sizeof(ElementType))); in reserve()150 mCapacity = newCapacity; in reserve()315 size_t newCapacity = mCapacity * 2; in prepareForPush() local316 if (newCapacity == 0) { in prepareForPush()317 newCapacity = 1; in prepareForPush()320 if (!reserve(newCapacity)) { in prepareForPush()
154 bool reserve(size_t newCapacity);