aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdutils/td/utils/DecTree.h
diff options
context:
space:
mode:
authorArseny Smirnov <arseny30@gmail.com>2019-08-12 14:45:57 +0300
committerArseny Smirnov <arseny30@gmail.com>2019-08-12 14:45:57 +0300
commitf63ce74feff1f411f0cc15d8ee277e034e1aaeb4 (patch)
tree19a324d8c336fd82b3ea3570a589513ee33e76a1 /tdutils/td/utils/DecTree.h
parent7a863daa50e3bcd84621b0d3ea07f26b0d1aa819 (diff)
tdutils: import changes from other project
GitOrigin-RevId: 0cfbe2418933cffdce4f0d1b8461c247a814d868
Diffstat (limited to 'tdutils/td/utils/DecTree.h')
-rw-r--r--tdutils/td/utils/DecTree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tdutils/td/utils/DecTree.h b/tdutils/td/utils/DecTree.h
index a03c3ae0a..467158d0d 100644
--- a/tdutils/td/utils/DecTree.h
+++ b/tdutils/td/utils/DecTree.h
@@ -185,6 +185,9 @@ class DecTree {
void remove(const KeyType &key) {
root_ = remove_node(std::move(root_), key);
}
+ void reset() {
+ root_ = nullptr;
+ }
ValueType *get(const KeyType &key) {
return get_node(root_, key);
}