diff options
author | Hendiadyoin1 <leon2002.la@gmail.com> | 2021-08-15 22:20:37 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-09-10 14:33:53 +0000 |
commit | 93cf01ad7db21ec5f48a46e206356ea791158fca (patch) | |
tree | 7d9e4706b873dea1d9ddd2dd85cdacbb78e96d2a | |
parent | 1aa527f5b68e5e4c69cf6bbc8c2f3c877496811b (diff) | |
download | serenity-93cf01ad7db21ec5f48a46e206356ea791158fca.zip |
AK: Mark HashTable::size_in_bytes() as constexpr
-rw-r--r-- | AK/HashTable.h | 2 |
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; |