• Home
  • Raw
  • Download

Lines Matching refs:mLength

103     bool empty() const { return mLength == 0; }
104 size_type size() const { return mLength; }
122 reference back() { return mLength ? *(mBegin + mLength - 1) : front(); }
123 const_reference back() const { return mLength ? *(mBegin + mLength - 1) : front(); }
137 { return index < mLength ? *( mBegin + index) : sDummy; }
140 { return index < mLength ? *( mBegin + index) : sDummy; }
143 iterator end() { return iterator(mBegin + mLength); }
146 const_iterator end() const { return const_iterator(mBegin + mLength); }
226 size_type mLength;
243 // Invariant: mLength <= mCapacity <= max_size()
248 :mBegin(NULL), mCapacity(0), mLength(0) { }
265 mLength = mCapacity = num;
266 std::uninitialized_fill(mBegin, mBegin + mLength, init_value);
271 mLength = mCapacity = 0;
279 if (0 == mLength) // Free whatever has been reserved.
284 new_size = mLength; // Shrink to fit.
286 else if (new_size < mLength || new_size > max_size())
309 std::uninitialized_copy(mBegin, mBegin + mLength, newBegin);
321 if (max_size() == mLength) return;
322 if (mCapacity == mLength)
327 // mLength < mCapacity
329 *(mBegin + mLength) = elt;
333 new((void *)(mBegin + mLength)) _T(elt);
335 ++mLength;
341 if (mLength > 0)
343 --mLength;
346 (mBegin + mLength)->~_T();
354 if (mLength) {
356 --mLength;
377 mLength -= len;
398 mLength = 0;
404 if (mLength == new_size || new_size > max_size()) {
406 } else if (new_size < mLength) {
408 const pointer end = mBegin + mLength;
414 mLength = new_size;
421 std::uninitialized_fill(mBegin + mLength, mBegin + new_size, init_value);
422 mLength = new_size;
430 std::swap(mLength, other.mLength);
440 mLength = mCapacity = 0;
456 mLength = mCapacity = num;
462 mLength = mCapacity = 0;
493 pointer end = mBegin + mLength;