Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(this == &anotherArray)
- return *this;
- T* copy = new T[anotherArray.getCapacity()];
- for (int i = 0; i < getCapacity(); i++)
- copy[i] = anotherArray[i];
- delete[] _storage;
- _storage = copy;
- _capacity = anotherArray.getCapacity();
- return *this;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement