Changeset 12321 in webkit for trunk/JavaScriptCore/kxmlcore/HashCountedSet.h
- Timestamp:
- Jan 23, 2006, 4:56:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kxmlcore/HashCountedSet.h
r12301 r12321 56 56 57 57 // increases the count if an equal value is already present 58 // returnsvalue is a pair of an interator to the new value's location,59 // and a bool that is true if an actual new insertion was done60 std::pair<iterator, bool> insert(const ValueType &value);58 // the return value is a pair of an interator to the new value's location, 59 // and a bool that is true if an new entry was added 60 std::pair<iterator, bool> add(const ValueType &value); 61 61 62 62 // reduces the count of the value, and removes it if count … … 138 138 139 139 template<typename Value, typename HashFunctions, typename Traits> 140 inline std::pair<typename HashCountedSet<Value, HashFunctions, Traits>::iterator, bool> HashCountedSet<Value, HashFunctions, Traits>:: insert(const ValueType &value)140 inline std::pair<typename HashCountedSet<Value, HashFunctions, Traits>::iterator, bool> HashCountedSet<Value, HashFunctions, Traits>::add(const ValueType &value) 141 141 { 142 142 pair<iterator, bool> result = m_impl.add(value, 0);
Note:
See TracChangeset
for help on using the changeset viewer.