Searched refs:newCapacity (Results 1 – 2 of 2) sorted by relevance
174 bool DynamicVector<ElementType>::reserve(size_type newCapacity) { in reserve() argument178 if (newCapacity <= mCapacity) { in reserve()182 memoryAlloc(newCapacity * sizeof(ElementType))); in reserve()188 mCapacity = newCapacity; in reserve()367 size_type newCapacity = mCapacity * 2; in prepareForPush() local368 if (newCapacity == 0) { in prepareForPush()369 newCapacity = 1; in prepareForPush()372 if (!reserve(newCapacity)) { in prepareForPush()
186 bool reserve(size_type newCapacity);