summaryrefslogtreecommitdiff
path: root/src/nodecache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodecache.h')
-rw-r--r--src/nodecache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nodecache.h b/src/nodecache.h
index 943f904..efd5104 100644
--- a/src/nodecache.h
+++ b/src/nodecache.h
@@ -25,6 +25,10 @@ public:
if (this->cache.size() > node.index()) this->cache[node.index()] = nullvalue;
}
+ void clear() {
+ this->cache.clear();
+ }
+
private:
std::vector<T> cache;
T nullvalue;
contact: Jan Huwald // Impressum