diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-10-04 18:58:28 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-10-04 18:58:28 +0200 |
commit | 5c81236047590133a37770a16d2b8875e079decc (patch) | |
tree | 31bdf8881703b2f25e2160b2dd0f22d6ffd85cd6 | |
parent | a2f90d565ad29edcb3bdab77bc7df51cdde8514a (diff) | |
download | redot-engine-5c81236047590133a37770a16d2b8875e079decc.tar.gz |
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(); } |