Changeset 48703 in webkit for trunk/JavaScriptCore/wtf/HashCountedSet.h
- Timestamp:
- Sep 23, 2009, 11:39:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/HashCountedSet.h
r44868 r48703 65 65 void remove(iterator it); 66 66 67 void clear(); 68 67 // removes the value, regardless of its count 68 void clear(iterator it); 69 void clear(const ValueType& value); 70 71 // clears the whole set 72 void clear(); 73 69 74 private: 70 75 ImplType m_impl; … … 167 172 168 173 template<typename Value, typename HashFunctions, typename Traits> 174 inline void HashCountedSet<Value, HashFunctions, Traits>::clear(const ValueType& value) 175 { 176 clear(find(value)); 177 } 178 179 template<typename Value, typename HashFunctions, typename Traits> 180 inline void HashCountedSet<Value, HashFunctions, Traits>::clear(iterator it) 181 { 182 if (it == end()) 183 return; 184 185 m_impl.remove(it); 186 } 187 188 template<typename Value, typename HashFunctions, typename Traits> 169 189 inline void HashCountedSet<Value, HashFunctions, Traits>::clear() 170 190 {
Note:
See TracChangeset
for help on using the changeset viewer.