diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-27 08:05:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 08:05:15 +0200 |
commit | 7cbdb9b4c36dfd44ab120d5bce37f0a27439ca6b (patch) | |
tree | 5cee0ad9c78b8abff48bfff6280fa055d352d998 /core | |
parent | ae1b124e1432beb8d25ee4a89f6a5c9af2876ea8 (diff) | |
parent | 3fe67fb5ad1b8fd7c5e099190de31e9d9e08d0d2 (diff) |
Merge pull request #50917 from raulsntos/more-iterators
Diffstat (limited to 'core')
-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() {} |