[VictoriaFalls] Implement Read File.

This commit is contained in:
Drew Galbraith 2023-11-02 20:57:28 -07:00
parent abf09d8fce
commit d7050ff19f
7 changed files with 87 additions and 17 deletions

View file

@ -17,6 +17,21 @@ class Vector {
other.size_ = 0;
other.capacity_ = 0;
}
Vector& operator=(Vector&& other) {
if (data_) {
delete[] data_;
}
data_ = other.data_;
size_ = other.size_;
capacity_ = other.capacity_;
other.data_ = nullptr;
other.size_ = 0;
other.capacity_ = 0;
return *this;
}
~Vector() {
if (data_) {