Lines Matching refs:mCapacity
117 size_type capacity() const { return mCapacity; }
225 size_type mCapacity;
243 // Invariant: mLength <= mCapacity <= max_size()
248 :mBegin(NULL), mCapacity(0), mLength(0) { }
265 mLength = mCapacity = num;
271 mLength = mCapacity = 0;
314 mCapacity = new_size;
322 if (mCapacity == mLength)
327 // mLength < mCapacity
397 mCapacity = 0;
418 if (new_size > mCapacity && !reserve(new_size)) {
429 std::swap(mCapacity, other.mCapacity);
440 mLength = mCapacity = 0;
456 mLength = mCapacity = num;
462 mLength = mCapacity = 0;
472 if (mCapacity > kExponentialLimit)
474 new_capacity = mCapacity + kLinearIncrement;
478 new_capacity = mCapacity == 0 ? kExponentialFactor : mCapacity * kExponentialFactor;
480 if (mCapacity > new_capacity || new_capacity > max_size())
482 new_capacity = mCapacity == max_size() ? 0 : max_size();