Index: third_party/WebKit/Source/wtf/HashCountedSet.h |
diff --git a/third_party/WebKit/Source/wtf/HashCountedSet.h b/third_party/WebKit/Source/wtf/HashCountedSet.h |
index b96b8c2d4fb7f949bd0c71333080dfbd708bc99e..f80793c496c05e7b819a5864e05f56e53f486f95 100644 |
--- a/third_party/WebKit/Source/wtf/HashCountedSet.h |
+++ b/third_party/WebKit/Source/wtf/HashCountedSet.h |
@@ -86,6 +86,8 @@ public: |
// Clears the whole set. |
void clear() { m_impl.clear(); } |
+ Vector<Value> asVector() const; |
+ |
template <typename VisitorDispatcher> |
void trace(VisitorDispatcher visitor) { m_impl.trace(visitor); } |
@@ -150,6 +152,14 @@ inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits, Allo |
vector[i] = (*it).key; |
} |
+template <typename T, typename U, typename V, typename W> |
+inline Vector<T> HashCountedSet<T, U, V, W>::asVector() const |
+{ |
+ Vector<T> vector; |
+ copyToVector(*this, vector); |
+ return vector; |
+} |
+ |
} // namespace WTF |
using WTF::HashCountedSet; |