Changeset 12511 in webkit for trunk/JavaScriptCore/kxmlcore/HashSet.h
- Timestamp:
- Jan 31, 2006, 8:33:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kxmlcore/HashSet.h
r12329 r12511 2 2 /* 3 3 * This file is part of the KDE libraries 4 * Copyright (C) 2005 Apple Computer, Inc. 4 * 5 * Copyright (C) 2005, 2006 Apple Computer, Inc. 5 6 * 6 7 * This library is free software; you can redistribute it and/or … … 194 195 } 195 196 197 template<typename Value, typename HashFunctions, typename Traits> 198 void deleteAllValues(HashSet<Value, HashFunctions, Traits>& collection) 199 { 200 typedef HashSet<Value, HashFunctions, Traits> T; 201 typename T::iterator end = collection.end(); 202 for (typename T::iterator it = collection.begin(); it != end; ++it) 203 delete (*it); 204 } 205 196 206 } // namespace khtml 197 207
Note:
See TracChangeset
for help on using the changeset viewer.