Searched refs:newCapacity (Results 1 – 4 of 4) sorted by relevance
35 bool DynamicVectorBase::doReserve(size_t newCapacity, size_t elementSize) { in doReserve() argument36 bool success = (newCapacity <= mCapacity); in doReserve()38 void *newData = memoryAlloc(newCapacity * elementSize); in doReserve()43 mCapacity = newCapacity; in doReserve()56 size_t newCapacity; in getNextGrowthCapacity() local58 newCapacity = 1; in getNextGrowthCapacity()60 newCapacity = mCapacity * 2; in getNextGrowthCapacity()62 newCapacity = mCapacity; in getNextGrowthCapacity()65 return newCapacity; in getNextGrowthCapacity()
186 bool reserve(size_type newCapacity);319 bool doReserve(size_type newCapacity, std::true_type);326 bool doReserve(size_type newCapacity, std::false_type);
174 bool DynamicVector<ElementType>::reserve(size_type newCapacity) { in reserve() argument175 return doReserve(newCapacity, typename std::is_trivial<ElementType>::type()); in reserve()179 bool DynamicVector<ElementType>::doReserve(size_type newCapacity, in doReserve() argument181 return DynamicVectorBase::doReserve(newCapacity, sizeof(ElementType)); in doReserve()185 bool DynamicVector<ElementType>::doReserve(size_type newCapacity, in doReserve() argument187 bool success = (newCapacity <= mCapacity); in doReserve()190 memoryAlloc(newCapacity * sizeof(ElementType))); in doReserve()196 mCapacity = newCapacity; in doReserve()
45 bool doReserve(size_t newCapacity, size_t elementSize);