Lines Matching refs:newCapacity
22 unsigned newCapacity = _capacity + (_capacity >> 2) + 1; in ReserveOnePosition() local
23 T *p = new T[newCapacity]; in ReserveOnePosition()
27 _capacity = newCapacity; in ReserveOnePosition()
59 void Reserve(unsigned newCapacity) in Reserve() argument
61 if (newCapacity > _capacity) in Reserve()
63 T *p = new T[newCapacity]; in Reserve()
67 _capacity = newCapacity; in Reserve()
71 void ClearAndReserve(unsigned newCapacity) in ClearAndReserve() argument
74 if (newCapacity > _capacity) in ClearAndReserve()
79 _items = new T[newCapacity]; in ClearAndReserve()
80 _capacity = newCapacity; in ClearAndReserve()
412 void ClearAndReserve(unsigned newCapacity) { Clear(); _v.ClearAndReserve(newCapacity); } in ClearAndReserve() argument