Changeset 48727 in webkit for trunk/JavaScriptCore/wtf/HashCountedSet.h
- Timestamp:
- Sep 24, 2009, 12:37:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/HashCountedSet.h
r48703 r48727 50 50 const_iterator end() const; 51 51 52 iterator find(const ValueType& value);53 const_iterator find(const ValueType& value) const;54 bool contains(const ValueType& value) const;55 unsigned count(const ValueType& value) const;52 iterator find(const ValueType&); 53 const_iterator find(const ValueType&) const; 54 bool contains(const ValueType&) const; 55 unsigned count(const ValueType&) const; 56 56 57 57 // increases the count if an equal value is already present 58 58 // the return value is a pair of an interator to the new value's location, 59 59 // and a bool that is true if an new entry was added 60 std::pair<iterator, bool> add(const ValueType &value);60 std::pair<iterator, bool> add(const ValueType&); 61 61 62 62 // reduces the count of the value, and removes it if count 63 63 // goes down to zero 64 void remove(const ValueType& value);65 void remove(iterator it);64 void remove(const ValueType&); 65 void remove(iterator); 66 66 67 67 // removes the value, regardless of its count 68 void clear(iterator it);69 void clear(const ValueType& value);68 void clear(iterator); 69 void clear(const ValueType&); 70 70 71 71 // clears the whole set
Note:
See TracChangeset
for help on using the changeset viewer.