diff options
Diffstat (limited to 'tdutils/td/utils/algorithm.h')
| -rw-r--r-- | tdutils/td/utils/algorithm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tdutils/td/utils/algorithm.h b/tdutils/td/utils/algorithm.h index a87de8ecb..6107b1d29 100644 --- a/tdutils/td/utils/algorithm.h +++ b/tdutils/td/utils/algorithm.h @@ -301,4 +301,12 @@ bool table_remove_if(FlatHashTable<NodeT, HashT, EqT> &table, FuncT &&func) { return table.remove_if(func); } +template <class KeyT, class ValueT, class HashT, class EqT> +class WaitFreeHashMap; + +template <class KeyT, class ValueT, class HashT, class EqT, class FuncT> +bool table_remove_if(WaitFreeHashMap<KeyT, ValueT, HashT, EqT> &table, const FuncT &func) { + return table.remove_if(func); +} + } // namespace td |
