|
|
@@ -477,10 +477,10 @@ public:
|
|
|
/// Return whether vector is empty.
|
|
|
bool Empty() const { return size_ == 0; }
|
|
|
|
|
|
-private:
|
|
|
/// Return the buffer with right type.
|
|
|
T* Buffer() const { return reinterpret_cast<T*>(buffer_); }
|
|
|
|
|
|
+private:
|
|
|
/// Resize the vector and create/remove new elements as necessary.
|
|
|
void Resize(unsigned newSize, const T* src)
|
|
|
{
|
|
|
@@ -1017,10 +1017,10 @@ public:
|
|
|
/// Return whether vector is empty.
|
|
|
bool Empty() const { return size_ == 0; }
|
|
|
|
|
|
-private:
|
|
|
/// Return the buffer with right type.
|
|
|
T* Buffer() const { return reinterpret_cast<T*>(buffer_); }
|
|
|
|
|
|
+private:
|
|
|
/// Move a range of elements within the vector.
|
|
|
void MoveRange(unsigned dest, unsigned src, unsigned count)
|
|
|
{
|