summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendiadyoin1 <leon2002.la@gmail.com>2021-08-15 22:20:37 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-09-10 14:33:53 +0000
commit93cf01ad7db21ec5f48a46e206356ea791158fca (patch)
tree7d9e4706b873dea1d9ddd2dd85cdacbb78e96d2a
parent1aa527f5b68e5e4c69cf6bbc8c2f3c877496811b (diff)
downloadserenity-93cf01ad7db21ec5f48a46e206356ea791158fca.zip
AK: Mark HashTable::size_in_bytes() as constexpr
-rw-r--r--AK/HashTable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/HashTable.h b/AK/HashTable.h
index beebda4a76..b075853b6e 100644
--- a/AK/HashTable.h
+++ b/AK/HashTable.h
@@ -378,7 +378,7 @@ private:
}
}
- [[nodiscard]] static size_t size_in_bytes(size_t capacity)
+ [[nodiscard]] static constexpr size_t size_in_bytes(size_t capacity)
{
if constexpr (IsOrdered) {
return sizeof(BucketType) * capacity;