mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 11:21:34 +00:00
AK: Add HashMap::ensure_capacity
This commit is contained in:
parent
8bb635bd33
commit
a511f1ef85
Notes:
sideshowbarker
2024-07-17 18:13:59 +09:00
Author: https://github.com/mattco98
Commit: a511f1ef85
Pull-request: https://github.com/SerenityOS/serenity/pull/23486
Issue: https://github.com/SerenityOS/serenity/issues/23471
Issue: https://github.com/SerenityOS/serenity/issues/23473
Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 0 deletions
|
@ -135,6 +135,8 @@ public:
|
|||
|
||||
ErrorOr<void> try_ensure_capacity(size_t capacity) { return m_table.try_ensure_capacity(capacity); }
|
||||
|
||||
void ensure_capacity(size_t capacity) { return m_table.ensure_capacity(capacity); }
|
||||
|
||||
Optional<typename ValueTraits::ConstPeekType> get(K const& key) const
|
||||
requires(!IsPointer<typename ValueTraits::PeekType>)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue