diff options
author | Raul Santos <raulsntos@gmail.com> | 2021-07-27 02:44:58 +0200 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2021-07-27 02:48:28 +0200 |
commit | c8a94a621dee5d1e891e5bf16185dea1c4596b6f (patch) | |
tree | 1f2083579833e0b7d71dbdfc38e9b69284eef4cc /core/templates | |
parent | e6a544c169ae598c1a6f8632f6d8bed1abcdaddc (diff) |
Fix Set range iterator implementation
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/set.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/templates/set.h b/core/templates/set.h index 245c174862..9261d2d3d2 100644 --- a/core/templates/set.h +++ b/core/templates/set.h @@ -71,6 +71,9 @@ public: Element *prev() { return _prev; } + T &get() { + return value; + } const T &get() const { return value; }; @@ -118,8 +121,8 @@ public: return *this; } - _FORCE_INLINE_ bool operator==(const Iterator &b) const { return E == b.E; } - _FORCE_INLINE_ bool operator!=(const Iterator &b) const { return E != b.E; } + _FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return E == b.E; } + _FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return E != b.E; } _FORCE_INLINE_ ConstIterator(const Element *p_E) { E = p_E; } _FORCE_INLINE_ ConstIterator() {} |