Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ArrayStorage& ArrayStorage:: operator[](const ArrayStorage &a)
- {
- if (this != &a){
- delete[] _data;
- _size = a.getsize();
- _data = new string [getsize()];
- for (int i = 0; i < a.getsize(); ++i)
- {
- _data[i] = a[i];
- }
- }
- return *this;
- }
Add Comment
Please, Sign In to add comment