mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:18:13 +00:00
AK: Add ensure_capacity() for HashMap and HashTable.
These functions make sure that the underlying table can accomodate at least 'capacity' entries before needing a rehash.
This commit is contained in:
parent
4fb2e5d8af
commit
12120167a9
2 changed files with 8 additions and 0 deletions
|
@ -69,6 +69,8 @@ public:
|
|||
ConstIteratorType end() const { return m_table.end(); }
|
||||
ConstIteratorType find(const K&) const;
|
||||
|
||||
void ensure_capacity(int capacity) { m_table.ensure_capacity(capacity); }
|
||||
|
||||
void dump() const { m_table.dump(); }
|
||||
|
||||
V get(const K& key) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue