mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 08:56:40 +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
|
@ -139,12 +139,12 @@ public:
|
|||
|
||||
void dump() const;
|
||||
|
||||
using Iterator = HashTableIterator<HashTable, T, typename SinglyLinkedList<T>::Iterator>;
|
||||
using Iterator = HashTableIterator<HashTable, T, typename Bucket::Iterator>;
|
||||
friend Iterator;
|
||||
Iterator begin() { return Iterator(*this, is_empty()); }
|
||||
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;
|
||||
ConstIterator begin() const { return ConstIterator(*this, is_empty()); }
|
||||
ConstIterator end() const { return ConstIterator(*this, true); }
|
||||
|
|
Loading…
Reference in a new issue