| Index: Source/wtf/HashTable.h
|
| diff --git a/Source/wtf/HashTable.h b/Source/wtf/HashTable.h
|
| index 302920fc28953211ae22de3c5521364b12efc190..41d4397597855cea4132638ff52c38d7e4665aea 100644
|
| --- a/Source/wtf/HashTable.h
|
| +++ b/Source/wtf/HashTable.h
|
| @@ -1277,6 +1277,17 @@ namespace WTF {
|
| return a.m_impl != b.m_impl;
|
| }
|
|
|
| + template<typename Collection1, typename Collection2>
|
| + inline void removeAll(Collection1& collection, const Collection2& toBeRemoved)
|
| + {
|
| + if (collection.isEmpty() || toBeRemoved.isEmpty())
|
| + return;
|
| + typedef typename Collection2::const_iterator CollectionIterator;
|
| + CollectionIterator end(toBeRemoved.end());
|
| + for (CollectionIterator it(toBeRemoved.begin()); it != end; ++it)
|
| + collection.remove(*it);
|
| + }
|
| +
|
| } // namespace WTF
|
|
|
| #include "wtf/HashIterators.h"
|
|
|