1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 05:14:59 +00:00

AK: Add HashMap::ensure_capacity

This commit is contained in:
Matthew Olsson 2024-03-05 18:07:48 -07:00 committed by Andreas Kling
parent 8bb635bd33
commit a511f1ef85

View file

@ -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>)
{