Changeset 25365 in webkit for trunk/JavaScriptCore/wtf/HashMap.h
- Timestamp:
- Sep 4, 2007, 10:01:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/HashMap.h
r24059 r25365 26 26 27 27 #include "HashTable.h" 28 #include "Vector.h" 28 29 29 30 namespace WTF { … … 376 377 deleteAllPairFirsts<typename HashMap<T, U, V, W, X>::KeyType>(collection); 377 378 } 379 380 template<typename T, typename U, typename V, typename W, typename X> 381 inline void copyValuesToVector(const HashMap<T, U, V, W, X>& collection, Vector<U>& vector) 382 { 383 typedef typename HashMap<T, U, V, W, X>::const_iterator iterator; 384 385 vector.resize(collection.size()); 386 387 iterator it = collection.begin(); 388 iterator end = collection.end(); 389 for (unsigned i = 0; it != end; ++it, ++i) 390 vector[i] = (*it).second; 391 } 378 392 379 393 } // namespace WTF
Note:
See TracChangeset
for help on using the changeset viewer.