diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2023-10-16 20:16:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-16 20:16:16 +0200 |
| commit | 3bc1c9b5e087c73f63a43481d976b1156afe78d5 (patch) | |
| tree | e2d67e5b7017da06522733bdd062f48b19d764ff | |
| parent | 8ac05d3cb6959fd7795bbd10a9324573277c4aec (diff) | |
| parent | 5c81236047590133a37770a16d2b8875e079decc (diff) | |
| download | redot-engine-3bc1c9b5e087c73f63a43481d976b1156afe78d5.tar.gz | |
Merge pull request #82797 from RandomShaper/fix_rbmap
Fix `RBMap`'s, iterator-based, `remove()`
| -rw-r--r-- | core/templates/rb_map.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/templates/rb_map.h b/core/templates/rb_map.h index 0a33809bb2..d373713669 100644 --- a/core/templates/rb_map.h +++ b/core/templates/rb_map.h @@ -96,6 +96,8 @@ public: typedef KeyValue<K, V> ValueType; struct Iterator { + friend class RBMap<K, V, C, A>; + _FORCE_INLINE_ KeyValue<K, V> &operator*() const { return E->key_value(); } |
