Changeset 247767 in webkit
- Timestamp:
- Jul 23, 2019 9:29:14 PM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r247761 r247767 1 2019-07-23 Keith Miller <keith_miller@apple.com> 2 3 Add cheat sheet comment for HashMap/Set iterator/AddResult 4 https://bugs.webkit.org/show_bug.cgi?id=200061 5 6 Reviewed by Saam Barati. 7 8 * wtf/HashMap.h: 9 * wtf/HashSet.h: 10 1 11 2019-07-23 Keith Rollin <krollin@apple.com> 2 12 -
trunk/Source/WTF/wtf/HashMap.h
r247673 r247767 66 66 67 67 public: 68 /* 69 * Since figuring out the entries of an iterator is confusing, here is a cheat sheet: 70 * const KeyType& key = iterator->key; 71 * ValueType& value = iterator->value; 72 */ 68 73 using iterator = HashTableIteratorAdapter<HashTableType, KeyValuePairType>; 69 74 using const_iterator = HashTableConstIteratorAdapter<HashTableType, KeyValuePairType>; … … 74 79 using ValuesConstIteratorRange = SizedIteratorRange<HashMap, typename const_iterator::Values>; 75 80 81 /* 82 * Since figuring out the entries of an AddResult is confusing, here is a cheat sheet: 83 * iterator iter = addResult.iterator; 84 * bool isNewEntry = addResult.isNewEntry; 85 */ 76 86 using AddResult = typename HashTableType::AddResult; 77 87 -
trunk/Source/WTF/wtf/HashSet.h
r242387 r247767 46 46 47 47 public: 48 /* 49 * Since figuring out the entries of an iterator is confusing, here is a cheat sheet: 50 * const KeyType& key = iterator->key; 51 */ 48 52 typedef HashTableConstIteratorAdapter<HashTableType, ValueType> iterator; 49 53 typedef HashTableConstIteratorAdapter<HashTableType, ValueType> const_iterator; 54 55 /* 56 * Since figuring out the entries of an AddResult is confusing, here is a cheat sheet: 57 * iterator iter = addResult.iterator; 58 * bool isNewEntry = addResult.isNewEntry; 59 */ 50 60 typedef typename HashTableType::AddResult AddResult; 51 61
Note: See TracChangeset
for help on using the changeset viewer.