Searched refs:newCapacity (Results 1 – 2 of 2) sorted by relevance
183 size_t newCapacity; in Expand() local187 newCapacity = initialCapacity_; in Expand()189 newCapacity = GetCapacity(); in Expand()190 newCapacity += (newCapacity + 1) / 2; in Expand()193 if (newCapacity < newSize) in Expand()194 newCapacity = newSize; in Expand()196 Resize(newCapacity); in Expand()199 void Resize(size_t newCapacity) { in Resize() argument201 stack_ = static_cast<char*>(allocator_->Realloc(stack_, GetCapacity(), newCapacity)); in Resize()203 stackEnd_ = stack_ + newCapacity; in Resize()
1522 GenericValue& Reserve(SizeType newCapacity, Allocator &allocator) {1524 if (newCapacity > data_.a.capacity) {1525 …Realloc(GetElementsPointer(), data_.a.capacity * sizeof(GenericValue), newCapacity * sizeof(Generi…1526 data_.a.capacity = newCapacity;2464 …GenericArray Reserve(SizeType newCapacity, AllocatorType &allocator) const { value_.Reserve(newCap…