Changeset 25365 in webkit for trunk/JavaScriptCore/wtf/HashSet.h
- Timestamp:
- Sep 4, 2007, 10:01:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/HashSet.h
r24059 r25365 26 26 27 27 #include "HashTable.h" 28 #include "Vector.h" 28 29 29 30 namespace WTF { … … 315 316 deleteAllValues<typename HashSet<T, U, V>::ValueType>(collection.m_impl); 316 317 } 317 318 319 template<typename T, typename U, typename V> 320 inline void copyToVector(const HashSet<T, U, V>& collection, Vector<T>& vector) 321 { 322 typedef typename HashSet<T, U, V>::const_iterator iterator; 323 324 vector.resize(collection.size()); 325 326 iterator it = collection.begin(); 327 iterator end = collection.end(); 328 for (unsigned i = 0; it != end; ++it, ++i) 329 vector[i] = *it; 330 } 318 331 } // namespace WTF 319 332
Note:
See TracChangeset
for help on using the changeset viewer.