summaryrefslogtreecommitdiff
path: root/core/templates/lru.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/lru.h')
-rw-r--r--core/templates/lru.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/templates/lru.h b/core/templates/lru.h
index 55130cbeb0..b08b6455b6 100644
--- a/core/templates/lru.h
+++ b/core/templates/lru.h
@@ -102,6 +102,7 @@ public:
}
_FORCE_INLINE_ size_t get_capacity() const { return capacity; }
+ _FORCE_INLINE_ size_t get_size() const { return _map.size(); }
void set_capacity(size_t p_capacity) {
if (capacity > 0) {