mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
AK: Make HashTable and HashMap use size_t for size and capacity
This commit is contained in:
parent
3252a6925e
commit
b813b2f871
4 changed files with 28 additions and 28 deletions
|
@ -50,8 +50,8 @@ public:
|
|||
HashMap() {}
|
||||
|
||||
bool is_empty() const { return m_table.is_empty(); }
|
||||
int size() const { return m_table.size(); }
|
||||
int capacity() const { return m_table.capacity(); }
|
||||
size_t size() const { return m_table.size(); }
|
||||
size_t capacity() const { return m_table.capacity(); }
|
||||
void clear() { m_table.clear(); }
|
||||
|
||||
void set(const K& key, const V& value) { m_table.set({ key, value }); }
|
||||
|
@ -92,7 +92,7 @@ public:
|
|||
return m_table.find(hash, finder);
|
||||
}
|
||||
|
||||
void ensure_capacity(int capacity) { m_table.ensure_capacity(capacity); }
|
||||
void ensure_capacity(size_t capacity) { m_table.ensure_capacity(capacity); }
|
||||
|
||||
Optional<typename Traits<V>::PeekType> get(const K& key) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue