Add const versions of dereference operators for DictEntry

This commit is contained in:
Tim Wojtulewicz 2022-01-14 10:21:00 -07:00
parent f588cef65e
commit 93ee353f30

View file

@ -168,7 +168,9 @@ public:
DictIterator& operator=(DictIterator&& that); DictIterator& operator=(DictIterator&& that);
reference operator*() { return *curr; } reference operator*() { return *curr; }
reference operator*() const { return *curr; }
pointer operator->() { return curr; } pointer operator->() { return curr; }
pointer operator->() const { return curr; }
DictIterator& operator++(); DictIterator& operator++();
DictIterator operator++(int) DictIterator operator++(int)