synced code with scummvm trunk
This commit is contained in:
parent
c8436afa36
commit
edadbb35be
140 changed files with 5146 additions and 2956 deletions
|
@ -199,6 +199,21 @@ public:
|
|||
return (_size == 0);
|
||||
}
|
||||
|
||||
bool operator==(const Array<T> &other) const {
|
||||
if (this == &other)
|
||||
return true;
|
||||
if (_size != other._size)
|
||||
return false;
|
||||
for (uint i = 0; i < _size; ++i) {
|
||||
if (_storage[i] != other._storage[i])
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool operator!=(const Array<T> &other) const {
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
|
||||
iterator begin() {
|
||||
return _storage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue