Changeset 18203 in webkit for trunk/JavaScriptCore/wtf/HashMap.h
- Timestamp:
- Dec 13, 2006, 3:20:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/HashMap.h
r17664 r18203 306 306 } 307 307 308 template<typename T, typename U, typename V, typename W, typename X> 309 bool operator==(const HashMap<T, U, V, W, X>& a, const HashMap<T, U, V, W, X>& b) 310 { 311 if (a.size() != b.size()) 312 return false; 313 314 typedef typename HashMap<T, U, V, W, X>::const_iterator const_iterator; 315 316 const_iterator end = a.end(); 317 const_iterator notFound = b.end(); 318 for (const_iterator it = a.begin(); it != end; ++it) { 319 const_iterator bPos = b.find(it->first); 320 if (bPos == notFound || it->second != bPos->second) 321 return false; 322 } 323 324 return true; 325 } 326 327 template<typename T, typename U, typename V, typename W, typename X> 328 inline bool operator!=(const HashMap<T, U, V, W, X>& a, const HashMap<T, U, V, W, X>& b) 329 { 330 return !(a == b); 331 } 332 308 333 template<typename MappedType, typename HashTableType> 309 334 void deleteAllPairSeconds(HashTableType& collection)
Note:
See TracChangeset
for help on using the changeset viewer.