Skip to content

Commit

Permalink
Merge pull request godotengine#82797 from RandomShaper/fix_rbmap
Browse files Browse the repository at this point in the history
Fix `RBMap`'s, iterator-based, `remove()`
  • Loading branch information
akien-mga authored Oct 16, 2023
2 parents 8ac05d3 + 5c81236 commit 3bc1c9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/templates/rb_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ class RBMap {
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();
}
Expand Down

0 comments on commit 3bc1c9b

Please sign in to comment.