mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
added operator= to RingBufferHistory<T>::Iterator
This commit is contained in:
parent
37b60a63b2
commit
763cc26fa9
1 changed files with 6 additions and 0 deletions
|
@ -109,6 +109,12 @@ public:
|
|||
public:
|
||||
Iterator(T* buffer, int size, T* at) : _buffer(buffer), _bufferEnd(buffer+size), _at(at) {}
|
||||
|
||||
Iterator& operator=(const Iterator& other) {
|
||||
_buffer = other._buffer;
|
||||
_bufferEnd = other._bufferEnd;
|
||||
_at = other._at;
|
||||
}
|
||||
|
||||
bool operator==(const Iterator& rhs) { return _at == rhs._at; }
|
||||
bool operator!=(const Iterator& rhs) { return _at != rhs._at; }
|
||||
T& operator*() { return *_at; }
|
||||
|
|
Loading…
Reference in a new issue