Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1773)

Unified Diff: Source/wtf/HashSet.h

Issue 131803005: Add more oilpan collections support (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix OtherType for Windows compielr Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/wtf/HashSet.h
diff --git a/Source/wtf/HashSet.h b/Source/wtf/HashSet.h
index 3ecd74c182bf9405840006ac998a26af73baf3c1..7fde52f9627ba55e8ba1220d177a4ee1d12a7917 100644
--- a/Source/wtf/HashSet.h
+++ b/Source/wtf/HashSet.h
@@ -68,9 +68,15 @@ namespace WTF {
typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> const_iterator;
typedef typename HashTableType::AddResult AddResult;
- void swap(HashSet& other)
+ void swap(HashSet& ref)
{
- m_impl.swap(other.m_impl);
+ m_impl.swap(ref.m_impl);
+ }
+
+ void swap(typename Allocator::template OtherType<HashSet>::Type other)
+ {
+ HashSet& ref = Allocator::getOther(other);
+ m_impl.swap(ref.m_impl);
}
unsigned size() const;
« Source/heap/Heap.h ('K') | « Source/wtf/HashMap.h ('k') | Source/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698