aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdutils/td/utils/algorithm.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-06-23 01:54:42 +0300
committerlevlam <levlam@telegram.org>2025-06-23 01:54:42 +0300
commit6614c148781db9cdc492c7c428ce685fa3f49abe (patch)
treed2ffa658d7ff3751707ea39c53bc367dc057eefe /tdutils/td/utils/algorithm.h
parent3c8bbc53c34bd0ef8ffdc406c9c8d8b71db73465 (diff)
Add WaitFreeHashSet::remove_if.
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