Changeset 14728 in webkit for trunk/JavaScriptCore/wtf/Vector.h
- Timestamp:
- Jun 4, 2006, 3:51:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/Vector.h
r14263 r14728 580 580 581 581 template<typename T, size_t inlineCapacity> 582 void deleteAllValues( Vector<T, inlineCapacity>& collection)583 { 584 typedef Vector<T, inlineCapacity> Vec;585 typename Vec::iterator end = collection.end();586 for ( typename Vec::iterator it = collection.begin(); it != end; ++it)582 void deleteAllValues(const Vector<T, inlineCapacity>& collection) 583 { 584 typedef typename Vector<T, inlineCapacity>::const_iterator iterator; 585 iterator end = collection.end(); 586 for (iterator it = collection.begin(); it != end; ++it) 587 587 delete *it; 588 588 }
Note:
See TracChangeset
for help on using the changeset viewer.