diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-12-30 21:52:57 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-05 19:48:17 -0700 |
commit | e18c0e92ba35bb863f7375b190b0448d5fa65d33 (patch) | |
tree | bd8dde285f2eb1f3d24abb5b2703c157f12125b7 /lib/containers | |
parent | 1f8734f894ac5fdaee25bba5b1e3ffd10b31ef4e (diff) |
rebuildnodes/btrees: Allow item rbtrees to be evicted
Diffstat (limited to 'lib/containers')
-rw-r--r-- | lib/containers/sortedmap.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/containers/sortedmap.go b/lib/containers/sortedmap.go index d6d2f9e..52308c9 100644 --- a/lib/containers/sortedmap.go +++ b/lib/containers/sortedmap.go @@ -92,3 +92,7 @@ func (m *SortedMap[K, V]) SearchAll(fn func(K, V) int) []OrderedKV[K, V] { return fn(kv.K, kv.V) }) } + +func (m *SortedMap[K, V]) Len() int { + return m.inner.Len() +} |