mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
HashTable: Use the Bucket type in some places over SinglyLinkedList<T>
This is just for consistency, and we might want to switch to another bucket type some day.
This commit is contained in:
parent
b5aac9c44b
commit
539985f4fe
1 changed files with 2 additions and 2 deletions
|
@ -139,12 +139,12 @@ public:
|
||||||
|
|
||||||
void dump() const;
|
void dump() const;
|
||||||
|
|
||||||
using Iterator = HashTableIterator<HashTable, T, typename SinglyLinkedList<T>::Iterator>;
|
using Iterator = HashTableIterator<HashTable, T, typename Bucket::Iterator>;
|
||||||
friend Iterator;
|
friend Iterator;
|
||||||
Iterator begin() { return Iterator(*this, is_empty()); }
|
Iterator begin() { return Iterator(*this, is_empty()); }
|
||||||
Iterator end() { return Iterator(*this, true); }
|
Iterator end() { return Iterator(*this, true); }
|
||||||
|
|
||||||
using ConstIterator = HashTableIterator<const HashTable, const T, typename SinglyLinkedList<T>::ConstIterator>;
|
using ConstIterator = HashTableIterator<const HashTable, const T, typename Bucket::ConstIterator>;
|
||||||
friend ConstIterator;
|
friend ConstIterator;
|
||||||
ConstIterator begin() const { return ConstIterator(*this, is_empty()); }
|
ConstIterator begin() const { return ConstIterator(*this, is_empty()); }
|
||||||
ConstIterator end() const { return ConstIterator(*this, true); }
|
ConstIterator end() const { return ConstIterator(*this, true); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue