Lines Matching refs:newCapacity
24 unsigned newCapacity = _capacity + (_capacity >> 2) + 1; in ReserveOnePosition() local
25 T *p = new T[newCapacity]; in ReserveOnePosition()
30 _capacity = newCapacity; in ReserveOnePosition()
62 void Reserve(unsigned newCapacity) in Reserve() argument
64 if (newCapacity > _capacity) in Reserve()
66 T *p = new T[newCapacity]; in Reserve()
71 _capacity = newCapacity; in Reserve()
75 void ClearAndReserve(unsigned newCapacity) in ClearAndReserve() argument
78 if (newCapacity > _capacity) in ClearAndReserve()
83 _items = new T[newCapacity]; in ClearAndReserve()
84 _capacity = newCapacity; in ClearAndReserve()
421 void ClearAndReserve(unsigned newCapacity) { Clear(); _v.ClearAndReserve(newCapacity); } in ClearAndReserve() argument