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

Side by Side Diff: third_party/WebKit/Source/wtf/HashSet.h

Issue 1968043002: Get rid of 'PassInType' in hash traits and containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/HashMap.h ('k') | third_party/WebKit/Source/wtf/HashTable.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 24 matching lines...) Expand all
35 typename ValueArg, 35 typename ValueArg,
36 typename HashArg = typename DefaultHash<ValueArg>::Hash, 36 typename HashArg = typename DefaultHash<ValueArg>::Hash,
37 typename TraitsArg = HashTraits<ValueArg>, 37 typename TraitsArg = HashTraits<ValueArg>,
38 typename Allocator = PartitionAllocator> 38 typename Allocator = PartitionAllocator>
39 class HashSet { 39 class HashSet {
40 WTF_USE_ALLOCATOR(HashSet, Allocator); 40 WTF_USE_ALLOCATOR(HashSet, Allocator);
41 private: 41 private:
42 typedef HashArg HashFunctions; 42 typedef HashArg HashFunctions;
43 typedef TraitsArg ValueTraits; 43 typedef TraitsArg ValueTraits;
44 typedef typename ValueTraits::PeekInType ValuePeekInType; 44 typedef typename ValueTraits::PeekInType ValuePeekInType;
45 typedef typename ValueTraits::PassInType ValuePassInType;
46 45
47 public: 46 public:
48 typedef typename ValueTraits::TraitType ValueType; 47 typedef typename ValueTraits::TraitType ValueType;
49 48
50 private: 49 private:
51 typedef HashTable<ValueType, ValueType, IdentityExtractor, 50 typedef HashTable<ValueType, ValueType, IdentityExtractor,
52 HashFunctions, ValueTraits, ValueTraits, Allocator> HashTableType; 51 HashFunctions, ValueTraits, ValueTraits, Allocator> HashTableType;
53 52
54 public: 53 public:
55 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> iterator; 54 typedef HashTableConstIteratorAdapter<HashTableType, ValueTraits> iterator;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 iterator end = collection.end(); 261 iterator end = collection.end();
263 for (unsigned i = 0; it != end; ++it, ++i) 262 for (unsigned i = 0; it != end; ++it, ++i)
264 vector[i] = *it; 263 vector[i] = *it;
265 } 264 }
266 265
267 } // namespace WTF 266 } // namespace WTF
268 267
269 using WTF::HashSet; 268 using WTF::HashSet;
270 269
271 #endif // WTF_HashSet_h 270 #endif // WTF_HashSet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/HashMap.h ('k') | third_party/WebKit/Source/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698