aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdutils/td/utils/algorithm.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdutils/td/utils/algorithm.h')
-rw-r--r--tdutils/td/utils/algorithm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tdutils/td/utils/algorithm.h b/tdutils/td/utils/algorithm.h
index 6107b1d29..d225a46a9 100644
--- a/tdutils/td/utils/algorithm.h
+++ b/tdutils/td/utils/algorithm.h
@@ -309,4 +309,12 @@ bool table_remove_if(WaitFreeHashMap<KeyT, ValueT, HashT, EqT> &table, const Fun
return table.remove_if(func);
}
+template <class KeyT, class HashT, class EqT>
+class WaitFreeHashSet;
+
+template <class KeyT, class HashT, class EqT, class FuncT>
+bool table_remove_if(WaitFreeHashSet<KeyT, HashT, EqT> &table, const FuncT &func) {
+ return table.remove_if(func);
+}
+
} // namespace td