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:
Andreas Kling 2019-08-04 19:20:20 +02:00
parent b5aac9c44b
commit 539985f4fe

View file

@ -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); }