Add iterator copy operator in collections

This commit is contained in:
Wojciech Figat
2022-10-21 15:40:47 +02:00
parent 32e052a87b
commit 8dec405f4f
3 changed files with 21 additions and 0 deletions

View File

@@ -282,6 +282,13 @@ public:
return _index != v._index || &_collection != &v._collection;
}
Iterator& operator=(const Iterator& v)
{
_collection = v._collection;
_index = v._index;
return *this;
}
Iterator& operator++()
{
const int32 capacity = _collection.Capacity();